error in compiling under Solaris 2.4

Previous Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

error in compiling under Solaris 2.4

Fan Yu

Hi, there,

I'm installing octave-1.1.1 in my Sun Sparc 20 running Solaris 2.4. I use Gcc-2.7.2, libg++ 2.7.0 & GNU make 3.74 to compile it. also I have installed gnuplot, bison, flex, and Texinfo in my machine. I also merged g77-0.5.18 into my Gcc. But I failed in compiling Octave. Please help me!

Following is the error messages:

------------------
c++ -c  -I. -I../src -I.. -I../liboctave -I../src -DHAVE_CONFIG_H  -fno-implicit-templates  -g -O CColVector.cc
In file included from dMatrix.h:32,
                 from mx-base.h:31,
                 from CColVector.cc:32:
mx-defs.h:59: conflicting types for `struct Complex'
/opt/gnu/lib/g++-include/Complex.h:8: previous declaration as `class complex<double>'
mx-defs.h:59: conflicting types for `struct Complex'
/opt/gnu/lib/g++-include/Complex.h:82: previous declaration as `class complex<double>'
Array.h: In method `class Complex DiagArray<Complex>::get(int)':
In file included from mx-base.h:32,
                 from CColVector.cc:32:
Array.h:233: return-type `Complex' is an incomplete type
Array.h:233: cannot lookup method in incomplete type `Complex'
Array.h:233: in base initialization for class `Complex'
Array.h: In method `void DiagArray<Complex>::set(const class Complex &, int)':
Array.h:234: invalid use of undefined type `struct Complex'
Array.h:234: `Complex' does not define operator=
mx-inlines.cc: At top level:
In file included from CColVector.cc:33:
mx-inlines.cc:227: parameter `s' has incomplete type
mx-inlines.cc: In function `class Complex * add(const class Complex *, int, class Complex)':
mx-inlines.cc:227: confused by earlier errors, bailing out
make[2]: *** [CColVector.o] Error 1
make[2]: Leaving directory `/home1/fun/fyu/octave-1.1.1/liboctave'
make[1]: *** [liboctave] Error 2
make[1]: Leaving directory `/home1/fun/fyu/octave-1.1.1'
make: *** [all] Error 2
--------------------

Thanks in advance!

Fan, Yu