From bug-octave-request at bevo dot che dot wisc dot edu Sun Dec 1 19:49:31 2002 Subject: Compilation troubles: 2.1.40 and SuSE Linux 7.2 From: Obed Sands To: bug-octave at bevo dot che dot wisc dot edu Date: Sun, 01 Dec 2002 20:48:56 -0500 I get the errors when trying to compile 2.1.40 under SuSE Linux 7.2 (i.e. gcc 2.95.3) I configured with --enable-shared and --enable-lite-kernel. Something about variables with initializers but bad type in DASPK.cc. I do not speak C++ at all. Any help is appreciated. Thanks Scott Sands Edited build log follows... root at sisyphus:/usr/local/scratch/octave-2 dot 1 dot 40 > make *********************************************************** * * To compile Octave, you will need a recent versions of * the following software: * * g++ (2.95.x or a more recent version) * * flex (2.5.4 or a more recent version) -- required if * you need to recreate lex.cc from lex.l * * bison (1.28 or a more recent version) -- required if * you need to recreate parse.cc from parse.y * * gperf (2.7.1 or a more recent version) -- required if * you need to recreate oct-gperf.h from octave.gperf * * Now would be a good time to read INSTALL.OCTAVE if * you have not done so already. * *********************************************************** make -f octMakefile all ... [lots of stuff deleted] ... make[2]: Entering directory `/usr/local/scratch/octave-2.1.40/liboctave' ... [lots more stuff deleted] ... [here comes the interesting stuff] ... g++ -c -I. -I.. -I../liboctave -I../src -I../libcruft/misc -I../glob -I../glob -DHAVE_CONFIG_H -mieee-fp -fno-implicit-templates -g -O2 -Wall DASPK.cc -o DASPK.o DASPK.cc: In function `int ddaspk_f(const double &, const double *, const double *, const double &, double *, int &, double *, int *)': DASPK.cc:96: variable `class bad_alloc {anon}' has initializer but incomplete type DASPK.cc: In function `int ddaspk_psol(const int &, const double &, const double *, const double *, const double *, const double &, const double *, double *, int *, double *, const double &, int &, double *, int *)': DASPK.cc:115: variable `class bad_alloc {anon}' has initializer but incomplete type DASPK.cc: In function `int ddaspk_j(const double &, const double *, const double *, double *, const double &, double *, int *)': DASPK.cc:144: variable `class bad_alloc {anon}' has initializer but incomplete type make[2]: *** [DASPK.o] Error 1 make[2]: Leaving directory `/usr/local/scratch/octave-2.1.40/liboctave' make[1]: *** [liboctave] Error 2 make[1]: Leaving directory `/usr/local/scratch/octave-2.1.40' make: *** [all] Error 2 root at sisyphus:/usr/local/scratch/octave-2 dot 1 dot 40 > ------------------------------------------------------------- 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 -------------------------------------------------------------