From help-request at octave dot org Fri Feb 18 15:21:49 2005 Subject: FYI: compiling octave with gcc4 (no go) From: "Dmitri A. Sergatskov" To: octave help mailing list Date: Fri, 18 Feb 2005 14:25:03 -0700 I tried to compile octave-2.1.65 on RedHat/FedoraCore3 linux with gcc4 and gfortran (from RH development branch). gfortran could not compile ranlib so I deleted it from the Makefile (will rely on functions from octave-forge). I also got the following problem which I cannot solve: g++4 -c -fPIC -I. -I.. -I../liboctave -I../src -I../libcruft/misc -I../glob -I ../glob -DHAVE_CONFIG_H -mieee-fp -Wall -W -Wshadow -O2 -mcpu=athlon-mp -mtune=a thlon-mp -pipe lex.cc -o pic/lex.o octave.gperf: In function ‘const octave_kw* octave_kw_lookup(const char*, unsign ed int)’: octave.gperf:99: error: ‘’ is/uses anonymous type octave.gperf:99: error: trying to instantiate ‘template template octave_int::octave_int(U)’ ... and later on octave.gperf:103: error: ‘’ is/uses anonymous type octave.gperf:103: error: trying to instantiate ‘template template octave_int::octave_int(U)’ lex.l: In member function ‘bool bracket_brace_paren_nesting_level::is_bracket()’ : lex.l:196: error: ‘bracket_brace_paren_nesting_level::’ is/uses anonymous type lex.l:196: error: trying to instantiate ‘template template o ctave_int::octave_int(U)’ lex.l:196: error: ‘bracket_brace_paren_nesting_level::’ is/uses anonymous type ... This is not a crucial problem for me (I have a working octave, compiled with gcc3.4.3), but perhaps of some interest to others... Sincerely, Dmitri. -- ------------------------------------------------------------- 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 -------------------------------------------------------------