Hi, I’m trying to
compile a very simple parser in a Sun machine with Solaris 2.8 using g++. When I try this: g++ JustRead.cpp -I/home/users/mta/XML/xml-xalan/c/src
-I/eads_home/users/mta/XML/xerces-c-src_2_7_0/include -o JustRead.o I got the next error: Undefined
first referenced symbol
in file … xalanc_1_10::XalanSourceTreeDOMSupport::setParserLiaison(xalanc_1_10::XalanSourceTreeParserLiaison
const *) /var/tmp/cc3aSW5d.o ld: fatal: Symbol
referencing errors. No output written to JustRead.o collect2: ld returned 1
exit status Exit 1 I tried to specify the
folders where the Xerces and Xalan objects lay but then I got another problem: g++ JustRead.cpp
$XERCES_OBJ/*.o $XALAN_OBJ/*.o -I/home/users/mta/XML/xml-xalan/c/src -I/home/users/mta/XML/xerces-c-src_2_7_0/include
-o JustRead.o Undefined
first referenced symbol
in file socket
/ home/users/mta/XML/xerces-c-src_2_7_0/obj/SOLARIS/UnixHTTPURLInputStream.o shutdown
/ home/users/mta/XML/xerces-c-src_2_7_0/obj/SOLARIS/UnixHTTPURLInputStream.o gethostbyname
/ home/users/mta/XML/xerces-c-src_2_7_0/obj/SOLARIS/UnixHTTPURLInputStream.o inet_addr
/ home/users/mta/XML/xerces-c-src_2_7_0/obj/SOLARIS/UnixHTTPURLInputStream.o connect
/ home/users/mta/XML/xerces-c-src_2_7_0/obj/SOLARIS/UnixHTTPURLInputStream.o gethostbyaddr
/ home/users/mta/XML/xerces-c-src_2_7_0/obj/SOLARIS/UnixHTTPURLInputStream.o ld: fatal: Symbol referencing
errors. No output written to JustRead.o collect2: ld returned 1
exit status Exit 1 Do you know how could I
avoid the undefined symbol error? Regards, Miguel |