You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Mike Reynolds <mr...@interwoven.com> on 2001/01/29 00:17:04 UTC
RE: Trouble linking with libxerces-c1_3.so on Solaris 7
Bill,
try using gmake instead of make. That will work.
-----Original Message-----
From: Bill Halchin [mailto:bhalchin@hotmail.com]
Sent: Saturday, January 27, 2001 5:44 AM
To: xerces-c-dev@xml.apache.org
Cc: bhalchin@hotmail.com; vngalchin@yahoo.com
Subject: Trouble linking with libxerces-c1_3.so on Solaris 7
Hello,
I have trouble linking with the libxerces-c1_3.so on Solaris 7.
As an experiment I pared down DOMPrint (one of the Xerces samples)
to:
#include <stdlib.h>
#include "dom/DOM.hpp
int main(int argC, char* argV[])
int retval = 0;
DOM_Node node
;
return retval;
}
Really the only thing in this test case is the DOM_Node instance!
...
====================================================================
Here is the Makefile run:
sun%
sun% make
mkdir -p /usr/people/bhalchin/FTP/xerces-c1_3_0-SolCC/bin/obj/DOMPrintP
CC -DSOLARIS -L/usr/lib
/usr/people/bhalchin/FTP/xerces-c1_3_0-SolCC/bin/obj/DOMPrintP/DOMPrint.o -o
/usr/people/bhalchin/FTP/xerces-c1_3_0-SolCC/bin/DOMPrintP -L/usr/people/bha
lchin/FTP/xerces-c1_3_0-SolCC/lib -lxerces-c1_3 -lC -lgen
Undefined first referenced
symbol in file
DOM_Node::~DOM_Node()
/usr/people/bhalchin/FTP/xerces-c1_3_0-SolCC/bin/obj/DOMPrintP/DOMPrint.o
DOM_Node::DOM_Node()
/usr/people/bhalchin/FTP/xerces-c1_3_0-SolCC/bin/obj/DOMPrintP/DOMPrint.o
ld: fatal: Symbol referencing errors. No output written to
/usr/people/bhalchin/FTP/xerces-c1_3_0-SolCC/bin/DOMPrintP
make: *** [/usr/people/bhalchin/FTP/xerces-c1_3_0-SolCC/bin/DOMPrintP]
Error 1
Why ...I don't know, but at least
the problem is very, very small!!! I double checked my
LD_LIBRARY_PATH=/lib:/usr/lib
and also did I spell "xerces-c1_3" correctly.
Regards,
Bill
----------------------------------------------------------------------------
--
Get your FREE download of MSN Explorer at http://explorer.msn.com
--------------------------------------------------------------------- To
unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org For additional
commands, e-mail: xerces-c-dev-help@xml.apache.org