sounds like it wants rtti to me - did the makefile cause xerces to compiled
with rtti enabled?

-----Original Message-----
From: Henrik Jensen [mailto:[EMAIL PROTECTED]]
Sent: 23 October 2001 10:29
To: XercesMailingList
Subject: Newbie: undefined references when initializing


I'm having trouble getting Xerces 1.5.1 to work (am using RH Linux 6.2). 
Downloaded the source and followed the build instructions, but get these 
compiler messages when trying to make the initialize call:

-----
(from TServer.cc)

  try
    {
      XMLPlatformUtils::Initialize();
    }
  catch(const XMLException &toCatch)
    {
      cout << "boot_db: error";
    }


g++ -g -o mymud main.o TServer.o TDesc.o
TServer.o: In function 'TServer::boot_db(void)':
/home/pos/mymud/TServer.cc:61: undefined reference to 
'XMLPlatformUtils::Initialize(void)'
/home/pos/mymud/TServer.cc:63: undefined reference to 'XMLException
type_info 
function'
collect2: ld returned 1 exit status
make: *** [mymud] Error 1

-----

The environment variables XERCESCROOT and LD_LIBRARY_PATH are set, and the 
header files util/PlatformUtils.hpp and dom/DOM.hpp are included, so perhaps

the problem is in the Makefile:

-----

(from Makefile)

obj = main.o TServer.o TDesc.o

mymud : $(obj)
        g++ -g -o mymud $(obj)

main.o :        main.cc
                g++ -g -c main.cc

TServer.o :     TServer.cc TServer.h
                g++ -I/home/pos/xerces-c-src1_5_1/src/ -g -c TServer.cc

TDesc.o :       TDesc.cc TDesc.h
                g++ -g -c TDesc.cc

clean :
                rm mymud $(obj)

-----

The compiler does find the two relevant header files because of the -I
switch 
(if the line is left out, two "no such file"-messages appear), so that's not

it. Also, I've verified the spelling by looking in util/PlatformUtils.hpp,
but 
that wasn't it either.

I'm just getting into Linux so the answer is probably really simple, but any

help is appreciated a lot.

Best regards,
Henrik Jensen


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


------------------------------------------------------------------------
For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays 
Group does not accept legal responsibility for the contents of this 
message.  Although the Barclays Group operates anti-virus programmes, 
it does not accept responsibility for any damage whatsoever that is 
caused by viruses being passed.  Any views or opinions presented are 
solely those of the author and do not necessarily represent those of the 
Barclays Group.  Replies to this email may be monitored by the Barclays 
Group for operational or business reasons.

------------------------------------------------------------------------

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

Reply via email to