newbie compiler error understanding problems
Dave Morse
morse@wingededge.com
Mon Sep 18 16:21:00 GMT 2000
Hi,
I'm trying to port a C++ program to use G++. I get several error messages
that I don't understand. Maybe someone on this list is willing to help me
out?
First off, shouldn't these be warnings, not errors?
Secondly, aren't they library functions?
g++ -g -DLINUX -DNO_OSTREAM_WITHASSIGN -o ../bin/linux/simpleWriter linux/simple.o linux/simpleMain.o -L ../../lib -lexchange;
../../lib/libexchange.a(exchafun.o): In function `geString::asChar(void) const':
/home/dm/game-exchange-cvs/GameExchange/gapilib/build/../include/gelist.h(.text+0x0): multiple definition of `ios::tie(void) const'
../../lib/libexchange.a(exchared.o)(.text+0x0):/home/dm/game-exchange-cvs/GameExchange/gapilib/build/../include/gestring.h: first defined here
[270K more error messages, mostly the same, see http://64.89.51.47/~dm/cxx.txt ]
../../lib/libexchange.a(gestring.o): In function `geString::asChar(void) const':
/home/dm/game-exchange-cvs/GameExchange/gapilib/build/../include/gestring.h(.text+0x1338): multiple definition of `_IO_ostream_withassign::operator=(_IO_ostream_withassign &)'
../../lib/libexchange.a(exchared.o)(.text+0x1338):/home/dm/game-exchange-cvs/GameExchange/gapilib/build/../include/gestring.h: first defined here
collect2: ld returned 1 exit status
make: *** [../bin/linux/simpleWriter] Error 1
I'm using: gcc 2.95.2 with libstdc++ 2.90.8. (in /usr/local/bin)
I also get the same results with egcs-2.91.66 (in /usr/bin)
Thank you for your time.
More information about the Libstdc++
mailing list