From help-request at octave dot org Fri Jan 6 14:45:25 2006 Subject: Re: installing octave/cvs under slack-10.1 From: Andy Adler To: "John W. Eaton" cc: help at octave dot org Date: Fri, 6 Jan 2006 15:42:51 -0500 (EST) On Fri, 6 Jan 2006, John W. Eaton wrote: > On 6-Jan-2006, Andy Adler wrote: > | I see this error when I try to compile with gcc-3.3.5. BTW, I'm seeing > | different errors when I try to compile gcc-3.4. > | > | g++-3.4 -c -fPIC -I. -I.. -I../liboctave -I../src -I../libcruft/misc -DHAVE_CONFIG_H oct-fstrm.cc -o pic/oct-fstrm.o > | oct-fstrm.cc: In constructor `octave_fstream::octave_fstream(const std::string&, std::_Ios_Openmode, oct_mach_info::float_format)': > | oct-fstrm.cc:55: error: no matching function for call to `std::basic_fstream >::open(const char*, std::_Ios_Openmode&, int)' > | /usr/include/c++/3.4/fstream:819: note: candidates are: void std::basic_fstream<_CharT, _Traits>::open(const char*, std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits] > > The code in question is: > > octave_fstream::octave_fstream (const std::string& nm_arg, > std::ios::openmode arg_md, > oct_mach_info::float_format ff) > : octave_base_stream (arg_md, ff), nm (nm_arg) > { > > #if CXX_ISO_COMPLIANT_LIBRARY > > fs.open (nm.c_str (), arg_md); > > #else > // Override default protection of 0664 so that umask will appear to > // do the right thing. > > fs.open (nm.c_str (), arg_md, 0666); // LINE 55 > > #endif > > if (! fs) > { > using namespace std; > > error (strerror (errno)); > } > } > > > What happened when you ran configure? Why is > CXX_ISO_COMPLIANT_LIBRARY not defined? I recompiled and it worked. I dunno what was wrong. ./autogen.sh && \ LDFLAGS=-L/usr/lib/gcc/i486-linux/3.4.4/ CC=gcc-3.4 CXX=g++-3.4 \ ./configure --prefix=/opt/octave-cvs && \ make Thanks -- Andy Adler 1(613)562-5800x6218 ------------------------------------------------------------- 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 -------------------------------------------------------------