Hi All, > Are you sure that will fix the problem? I am not using this functions
Yes, <cstdlib> fixed the problem, for me at least ( with G++ 4.7 ) -- Satish.BD On Mon, Nov 7, 2011 at 21:15, Juan Pablo Carbajal <carba...@ifi.uzh.ch> wrote: > Hi, > > Well, that wasn't in the patch. > > > --- cl2bp_lib.h 2009-10-18 09:33:59.000000000 +0200 > +++ cl2bp_lib.h.new 2011-10-22 15:56:41.000000000 +0200 > @@ -31,7 +31,8 @@ > #ifndef CL2BP_H > #define CL2BP_H > > -#include <assert.h> > +#include <cassert> > +#include <cstring> //for memset > > //----------------------------------------------------------------------------------------------------------- > // If you want to debug the cl2bp algorithm, define the CL2BP_LOGGING > symbol and provide an > @@ -63,7 +64,7 @@ > assert(length_ >= 0 && length_ <= 512*1024*1024); // verify that > the array size is reasonable > length = length_; > ptr = (T *)realloc(ptr, length * sizeof(T)); > - memset(ptr, 0, length * sizeof(T)); > + std::memset(ptr, 0, length * sizeof(T)); > } > > MallocArray(int length_=0) { > > Are you sure that will fix the problem? I am not using this functions > from the package nor I know what they should return. > > Thanks > > > 2011/11/7 bd satish <bdsat...@gmail.com>: >> Well, I just downloaded signal-1.1.1 and the error still persists ! >> The following line is still missing in cl2bp.h: >> >> #include <cstdlib> >> >> Without the above line, 'free', 'realloc' are undefined. Looks like >> you added <cassert> and <cstring> but forgot <cstdlib> :-) >> >> >> -- Satish.BD >> >> >>> Hi >>> >>> We have applied your fix and made a new release of the signal package >>> (both thank to Juan carbajal). Thank you for your contribution. >>> >>> Carnë Draug >>> >> >> ------------------------------------------------------------------------------ >> RSA(R) Conference 2012 >> Save $700 by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> _______________________________________________ >> Octave-dev mailing list >> Octave-dev@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/octave-dev >> > > > > -- > M. Sc. Juan Pablo Carbajal > ----- > PhD Student > University of Zürich > http://ailab.ifi.uzh.ch/carbajal/ > ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev