Subject: Problems compiling Octave under 1.2
To: NetBSD i386 <port-i386@NetBSD.ORG>
From: Jukka Marin <jmarin@pyy.jmp.fi>
List: port-i386
Date: 02/13/1997 10:33:01
I, too, became interested in Octave.  I grabbed the 1.1.1 source and
installed f2c.  However, the compile aborts after running configure and
gmake:

gmake[2]: Entering directory `/tmp/octave-1.1.1/liboctave'
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'
/usr/include/g++/Complex.h:8: previous declaration as `class complex<double>'
mx-defs.h:59: conflicting types for `struct Complex'
/usr/include/g++/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: 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=

I know nothing about C++, so I'm lost.  Any advice?  Thanks in advance,

  -jm

-- 

                     ---> http://www.jmp.fi/~jmarin/ <---