libg++ problems building liboctave.a

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

libg++ problems building liboctave.a

Mark Lamourine
I am trying to build octave 1.0 on a sparc-sun-sunos4.1.3 system.
I am using gcc-2.6.0 and libg++2.6.

the libloctave modules ColVector, DiagMatrix, Matrix-ext, Matrix and
RowVector fail to compile.

When trying to build liboctave/ColVector and others I get a number of warnings
like this one:

gnumake[1]: Entering directory `/m2/mlamouri/src/octave-1.0/liboctave'
g++ -c  -I. -I.. -I../liboctave -I. -I./liboctave  -DHAVE_CONFIG_H -fexternal-templates  -g -O -Wall ColVector.cc
/usr/local/lib/g++-include/Complex.h: In function `int operator ==(const class Complex &, const class Complex &)':
In file included from Matrix.h:40,
                 from ColVector.cc:30:
/usr/local/lib/g++-include/Complex.h:171: warning: `operator ==(const Complex &, const Complex &)' was declared `extern' and later `static'
/usr/local/lib/g++-include/Complex.h:92: warning: previous declaration of `operator ==(const Complex &, const Complex &)'
/usr/local/lib/g++-include/Complex.h: In function `int operator ==(const class Complex &, double)':

and I also get the following errors...

Matrix.h: In function `class ComplexColumnVector operator +(const class ColumnVector &, const class Complex &)':
Matrix.h:1032: constructor `ComplexColumnVector::ComplexColumnVector(class Complex *, int)' is private
ColVector.cc:253: within this context
ColVector.cc:254: warning: control reaches end of non-void function `operator +(const ColumnVector &, const Complex &)'

I have not yet dived into the sources to figure out how to fix this.
Has someone done it already?

- mark
-------------------------------------------------------------------
Mark Lamourine, Systems Administrator, Dept. 82
BBN Inc, 70 Fawcett St, Cambridge, MA 02138 MS 14/d
Internet: [hidden email]   Voice: (617) 873-4306   Fax: (617) 873-2616