help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compile of octave-2.1.36 fails w/ gcc-3.2.0


From: John W. Eaton
Subject: Compile of octave-2.1.36 fails w/ gcc-3.2.0
Date: Thu, 15 Aug 2002 21:41:28 -0500

On 15-Aug-2002, Jonathan Drews <address@hidden> wrote:

|  I tried compiling octave-2.1.36 with gcc version 3.2 (Mandrake Linux 9.0 
| 3.2-0.2mdk) and i get this error message:
| In file included from c-file-ptr-stream.cc:31:
| c-file-ptr-stream.h: In constructor `c_file_ptr_buf::c_file_ptr_buf(FILE*, 
int 
| (*)(FILE*))':
| c-file-ptr-stream.h:56: no matching function for call to 
| `std::basic_filebuf<char, std::char_traits<char> >::basic_filebuf(FILE*&, 
| std::_Ios_Openmode)'
| 
| 
| /usr/include/c++/3.2/iosfwd:83: candidates are: std::basic_filebuf<char, 
| std::char_traits<char> >::basic_filebuf(const std::basic_filebuf<char, 
| std::char_traits<char> >&)
| /usr/include/c++/3.2/bits/fstream.tcc:75:                 
| std::basic_filebuf<_CharT, _Traits>::basic_filebuf() [with _CharT = char, 
| _Traits = std::char_traits<char>]
| make[2]: *** [c-file-ptr-stream.o] Error 1
| make[2]: Leaving directory `/home/calc/octave-2.1.36/src'
| make[1]: *** [src] Error 2
| 
|  I tried make clean but the recompile still failed. Any advice on what the 
| problem might be is appreciated.

Try this:  edit the generated config.h file and change

  /* Define if your C++ runtime library is ISO compliant. */
  /* #undef CXX_ISO_COMPLIANT_LIBRARY */

to

  /* Define if your C++ runtime library is ISO compliant. */
  #define CXX_ISO_COMPLIANT_LIBRARY 1

This problem should be fixed in CVS now and that fix should appear in
the next snapshot.

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
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]