Another person reported a similar linker error recently. I don't think you
can assume binaries from Visual Age 5.02 will be compatible with binaries
from 6.0. In particular, it looks like 6.0 is dropping the second (and
useless, I might add) CV qualifier from the parameters when it mangles the
names. If Xerces didn't use this silly way of defining parameters
everywhere, you might not have the problem, but alas, they do.
You'll have to use Visual Age 5.02, or rebuild the library using 6.0.
Dave
"Chong, Herb"
<Herb.Chong@mood To:
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
ys.com> cc: (bcc: David N
Bertoni/Cambridge/IBM)
Subject: VisualAge 6.0
02/20/2003 05:52
AM
Please respond
to xerces-c-dev
hello all, i'm back temporarily. i'm using the binary distribution of
Xerces
C++ 2.2 with VisualAge 6.0 on AIX 5.1. i'm getting linker errors that don't
make sense to me. Moodys doesn't have the GNU tools so i wrote a small
makefile for the SAX2Count example and compiled it.
this is the loader command i am using:
xlC SAX2Count.o SAX2CountHandlers.o -o SAX2Count libxml4c.so
pretty simple. everything compiles OK. i get these errors at link time.
ld: 0711-317 ERROR: Undefined symbol:
.xercesc_2_2::XMLPlatformUtils::Initialize(const char*)
ld: 0711-317 ERROR: Undefined symbol:
.xercesc_2_2::XMLString::transcode(const unsigned short*)
what bothers me is that these symbols are not defined in the Xerces
headers.
the parameter list is actually slightly different in the prototypes: the
first is "const char * const" and the second is "const unsigned short *
const". is anyone else using VisualAge 6.0 with Xerces C++? is there
something i am missing in the loader command? note: because i don't have
access to GNU tools here, i can't rebuild the libraries to test with them.
i
downloaded this version of Xerces from the IBM Alphaworks site to get the
libraries built with ICU support.
Herb...
---------------------------------------
The information contained in this e-mail message, and any attachment
thereto, is confidential and may not be disclosed without our express
permission. If you are not the intended recipient or an employee or agent
responsible for delivering this message to the intended recipient, you are
hereby notified that you have received this message in error and that any
review, dissemination, distribution or copying of this message, or any
attachment thereto, in whole or in part, is strictly prohibited. If you
have received this message in error, please immediately notify us by
telephone, fax or e-mail and delete the message and all of its attachments.
Thank you.
Every effort is made to keep our network free from viruses. You should,
however, review this e-mail message, as well as any attachment thereto, for
viruses. We take no responsibility and have no liability for any computer
virus which may be transferred via this e-mail message.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]