If no compiler is passed
as parameter to runConfigure, it assumes c++. The problem was that c++ pointed
to g++ (v. 2.96) and I was trying to compile the samples using g++3 (v 3.0.4). That
was the cause of linker errors. Solution: runConfigure -xg++3
-cgcc3 …. Or point c++ to g++3 Hope this helps somebody
in the future. Thanks ------------------------------------------------------------ Gabriel Dos Santos Dávila e-mail: [EMAIL PROTECTED] SCYTL Online World Security C. Entença 95 4-1 08015 Barcelona, Spain NOTICE: The information in this e-mail and
in any of its attachments is confidential and intended solely for the attention
and use of the named addressee(s). If you are not the intended recipient, any
disclosure, copying, distribution or retaining of this message or any part of
it, without the prior written consent of SCYTL Online World Security, is
prohibited and may be unlawful. If you have received this in error, please
contact the sender and delete the material from any computer. From:
Gabriel Dos Santos [mailto: Hi. I'm trying to
compile and use xerces-c 2.3 on a IA64 running RedHat Advanced Server 7.2. The
compiler is gcc 3.0. I downloaded and
compiled xerces-c sources following this procedure: export
$XERCESCROOT=<dir sources> cd $XERCESCROOT
/src/xercesc autoconf ./runConfigure
-plinux -P/mylibspath gmake gmake install ldconfig export
LD_LIBRARY_PATH=/mylibspath$LD_LIBRARY_PATH Then I try to
compile and link this test program as part of a configure script
#include <xercesc/util/PlatformUtils.hpp>
int main () {
xercesc::XMLPlatformUtils::Initialize() ;
return 0;
} and get a
linker error like this
/tmp/cctnnpbb.o: In function `main':
/tmp/cctnnpbb.o(.text+0x2): undefined reference to `xercesc_2_3::XMLUni::fgXercescDefaultLocale'
/tmp/cctnnpbb.o(.text+0x22): undefined reference to
`xercesc_2_3::XMLPlatformUtils::Initialize(char const*, char const*,
xercesc_2_3::PanicHandler*, xercesc_2_3::MemoryManager*)' There's only one
libxerces-c in my system and if I run
nm --demangle libxerces-c.so.23.0 The function
shows up 00000000002b45f0
T xercesc_2_3::XMLPlatformUtils::Initialize(char const *, char const *,
xercesc_2_3::PanicHandler *, xercesc_2_3::MemoryManager *) I would
appreciate any advice or help. Thanks in
advance, Gabriel Dos e-mail: SCYTL Online
World Security |
- Problems compiling client test code Gabriel Dos Santos
- Gabriel Dos Santos