Archived

This forum has been archived. Please start a new discussion on GitHub.

linktime error from xerces 2.1

I get a fatal error trying to link IceBox. Here it is:

CC -I/usr/local/db/include -I/usr/local/include -L../../lib -o ../../bin/icebox ServiceManagerI.o Server.o -lIceBox -lFreeze -lIceXML -lIce -ldl -lbz2 -lIceUtil -lpthread -luuid -lsocket -lrt -L/usr/local/db/lib -ldb
Undefined first referenced
symbol in file
std::basic_ostream<char,std::char_traits<char> >&std::basic_ostream<char,std::char_traits<char> >::write(const char*,long) /usr/local/gnu-stuff/xerces-c-src2_1_0/lib/libxerces-c.so.21
ld: fatal: Symbol referencing errors. No output written to ../../bin/icebox
gmake[2]: *** [../../bin/icebox] Error 1
gmake[2]: Leaving directory `/export/spare/amarlow/development/Ice-1.0.1/src/IceBox'
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/export/spare/amarlow/development/Ice-1.0.1/src'
gmake: *** [all] Error 1

Any ideas?

-Andrew M.

Comments

  • What compiler are you using, and what platform is this?
  • Originally posted by marc
    What compiler are you using, and what platform is this?

    Forte 6.2, Solaris 8.

    -apm
  • Originally posted by marlowa
    Forte 6.2, Solaris 8.

    -apm

    It seems that you try to link a GNU-compiled Xerces-C with Forte. I don't think this works, because the C++ ABIs are different for these two compilers, meaning that you must compile Xerces-C with Forte, too.
  • Originally posted by marc
    It seems that you try to link a GNU-compiled Xerces-C with Forte. I don't think this works, because the C++ ABIs are different for these two compilers, meaning that you must compile Xerces-C with Forte, too.

    Doh! Excuse me while I shoot myself... :-(