I forgot about another thing you need to consider. The Solaris ld linker is
not a very good linker. It does a lot of things that are wrong. Consider
using the GNU ld linker instead if you have a GCC that will allow this.

The trouble is that a Solaris ld version of GCC is not actually the same as
a GNU binutils/ld version of GCC. So you might not be able to do it without
bootstrapping a fixed GCC. If you think you need to do that, I know how. But
see if my build instructions work first because they should work with either
setup as far as I know.

HTH!
Matt

-----Original Message-----
From: Petteri Heinonen (TU/LMF) [mailto:[EMAIL PROTECTED]
Sent: Friday, May 20, 2005 6:22 AM
To: [email protected]
Subject: Linking problem


Hi,

I must have linked to a wrong place, or what is this about? I'm using
Solaris and g++ compiler. Here is part of the message when compiling:

In file included from
.../xerces-c-src_2_6_0/include/xercesc/util/XMLException.hpp:25,
                 from
.../xerces-c-src_2_6_0/include/xercesc/util/PlatformUtils.hpp:25,
                 from
.../xerces-c-src_2_6_0/include/xercesc/dom/DOMException.hpp:25,
                 from .../xerces-c-src_2_6_0/include/xercesc/dom/DOM.hpp:39,
                 from test2.cpp:2:
.../xerces-c-src_2_6_0/include/xercesc/util/XMLExceptMsgs.hpp:428: warning:
all member functions in class `::xerces
c_2_6::XMLExcepts' are private

...

Undefined                       first referenced
 symbol                             in file
__dl__Q211xercesc_2_67XMemoryPvPQ211xercesc_2_613MemoryManager
/var/tmp/ccfoeBxY.o
__Q211xercesc_2_612XMLExceptionPCcUiPQ211xercesc_2_613MemoryManager
/var/tmp/ccfoeBxY.o
__Q211xercesc_2_612XMLExceptionRCQ211xercesc_2_612XMLException
/var/tmp/ccfoeBxY.o
__tiQ211xercesc_2_612XMLException   /var/tmp/ccfoeBxY.o
__tfQ211xercesc_2_612XMLException   /var/tmp/ccfoeBxY.o
__dl__Q211xercesc_2_67XMemoryPv     /var/tmp/ccfoeBxY.o
_Q211xercesc_2_66XMLUni.fgArrayIndexOutOfBoundsException_Name
/var/tmp/ccfoeBxY.o
__nw__Q211xercesc_2_67XMemoryUiPQ211xercesc_2_613MemoryManager
/var/tmp/ccfoeBxY.o
loadExceptText__Q211xercesc_2_612XMLExceptionQ311xercesc_2_610XMLExcepts5Cod
es /var/tmp/ccfoeBxY.o
_Q211xercesc_2_66XMLUni.fgXercescDefaultLocale /var/tmp/ccfoeBxY.o
_._Q211xercesc_2_612XMLException    /var/tmp/ccfoeBxY.o
Initialize__Q211xercesc_2_616XMLPlatformUtilsPCcT1PQ211xercesc_2_612PanicHan
dlerPQ211xercesc_2_613MemoryManager /var/tmp/ccfoeBxY.o
ld: fatal: Symbol referencing errors. No output written to a.out

Best Regards,
Petteri Heinonen


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
___________________________________________________________________
The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure.  If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to