[apluslist] A+ compilation errors
Vladimir N. Kutinsky
kutinskyv at obninsk.com
Tue Feb 8 23:01:50 EST 2005
Hello all,
Ive just tried to compile A+(4.20-1) and ran into a problem i cant seem to
solve on my own. This is what i did. I 'export'ed two variables CFLAGS and
CXXFLAGS setting them to -O3 and ran
./configure --prefix=/usr/local/aplus-fsf-4.20
This step seems to have worked okay. Then i ran 'make install' and this is
when the fun started. At first, i got the following messages(a snippet of
the result):
.........
In file included from pA_Connection.C:33:
/usr/include/g++/backward/iostream.h:35: error: `ostream' is already
declared
in this scope
/usr/include/g++/backward/iostream.h:35: error: using declaration `ostream'
introduced ambiguous type `ostream'
/usr/include/g++/backward/iostream.h:36: error: `istream' is already
declared
in this scope
/usr/include/g++/backward/iostream.h:36: error: using declaration `istream'
introduced ambiguous type `istream'
make[2]: *** [pA_Connection.lo] Error 1
make[2]: Leaving directory `/tmp/aplus-fsf-4.20/src/IPC'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/tmp/aplus-fsf-4.20/src'
make: *** [install-recursive] Error 1
I commented the 33th line of "pA_Connection.C" and ran make install again.
This time the script worked a lot farther and even managed to create a
/usr/local/aplus-fsf-4.20/lib directory with a dozen of libraries there, but
again ended up with an error:
..............
../MSTypes/MSRate.H:87: error: `ostream' denotes an ambiguous type
../MSTypes/MSSymbol.H:27: error: first type here
/usr/include/g++/iosfwd:64: error: other type here
../MSTypes/MSRate.H:87: error: `ostream' denotes an ambiguous type
../MSTypes/MSSymbol.H:27: error: first type here
/usr/include/g++/iosfwd:64: error: other type here
make[2]: *** [AGIF.lo] Error 1
make[2]: Leaving directory `/tmp/aplus-fsf-4.20/src/AplusGUI'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/tmp/aplus-fsf-4.20/src'
make: *** [install-recursive] Error 1
What did i do wrong? Can anyone help me please?
This is my environment:
SuSE Linux 9.2
gcc version 3.3.4 (pre 3.3.5 20040809)
Thanks in advance,
Vladimir
More information about the apluslist
mailing list