xerces-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Dos Santos" <Gabriel.DosSan...@scytl.com>
Subject RE: Problems compiling client test code
Date Wed, 14 Apr 2004 09:39:57 GMT
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.



            runConfigure -xg++3 -cgcc3  ….


 Or point c++ to g++3


Hope this helps somebody in the future.




Gabriel Dos Santos Dávila

e-mail: Gabriel.DosSantos@scytl.com

SCYTL Online World Security

C. Entença 95 4-1

08015 Barcelona, Spain

 <http://www.scytl.com/> http://www.scytl.com

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:Gabriel.DosSantos@scytl.com] 
Sent: miércoles, 14 de abril de 2004 10:05
To: xerces-c-dev@xml.apache.org
Subject: Problems compiling client test code



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


./runConfigure -plinux -P/mylibspath


gmake install




Then I try to compile and link this test program as part of a configure


    #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

    /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 Santos Dávila


e-mail: Gabriel.DosSantos@scytl.com


SCYTL Online World Security



View raw message