From bug-octave-request at bevo dot che dot wisc dot edu Fri Feb 22 21:19:59 2002 Subject: Octave-2.1.35-6 compilation error From: "John W. Eaton" To: Calvin Teague Cc: bug-octave at bevo dot che dot wisc dot edu Date: Fri, 22 Feb 2002 21:18:01 -0600 On 18-Jan-2002, Calvin Teague wrote: | | I just tried using fink to install octave-2.1.35-6 on a MacOSX 10.1.2 | system, and received the following error during the compilation phase. | I could just define NULL manually, but I suspect there is a header file | which should be included. Any suggestions? The last few lines from the | console output are below. | | A couple of months ago I successfully installed octave-2.1.35-5 on a | different machine, and I think I used fink for that, but I don't think | the -5 files are still on the fink site. Hmm. I don't see this problem on my system (Debian GNU/Linux) but I made the following change anyway (I think NULL should probably be avoided in C++ code). 2002-02-22 John W. Eaton * oct-fftw.cc (octave_fftw::fft2d): Avoid having to find a definition for NULL by passing 0 as the last arg to fftwnd_one. (octave_fftw::ifft2d): Likewise. Index: oct-fftw.cc =================================================================== RCS file: /usr/local/cvsroot/octave/liboctave/oct-fftw.cc,v retrieving revision 1.1 diff -u -r1.1 oct-fftw.cc --- oct-fftw.cc 2 May 2001 14:50:46 -0000 1.1 +++ oct-fftw.cc 23 Feb 2002 03:13:52 -0000 at @ -154,7 +154,7 @@ { fftwnd_one (fftw_planner.create_plan2d (FFTW_FORWARD, nr, nc), reinterpret_cast (inout), - NULL); + 0); return 0; } at @ -164,7 +164,7 @@ { fftwnd_one (fftw_planner.create_plan2d (FFTW_BACKWARD, nr, nc), reinterpret_cast (inout), - NULL); + 0); const size_t npts = nr * nc; const Complex scale = npts; Thanks, jwe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------