Home Help Center

linktime error from xerces 2.1

marlowamarlowa Member Andrew MarlowOrganization: Wellabove LtdProject: study into feasibility of ice on WINCE project ✭✭
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

  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    What compiler are you using, and what platform is this?
  • marlowamarlowa Member Andrew MarlowOrganization: Wellabove LtdProject: study into feasibility of ice on WINCE project ✭✭
    Originally posted by marc
    What compiler are you using, and what platform is this?

    Forte 6.2, Solaris 8.

    -apm
  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    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.
  • marlowamarlowa Member Andrew MarlowOrganization: Wellabove LtdProject: study into feasibility of ice on WINCE project ✭✭
    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... :-(
Sign In or Register to comment.