I've seen where some others on the list are having similar problems as I am 
having, but I didn't see a solution that addressed my situation.

I'm 98% sure this is some kind of configuration issue.  I have been able to 
build and install xercesc_2_3 on my SuSE 8.2 box.  The sample code builds 
when I use the runConfigure script from the default location.  For some 
reason, very similar code gives me problems when I try to build from another 
directory, and without the Makefiles, etc.  IOW, I create a simple main.cpp:

/* main.cpp */
#include <xercesc/util/PlatformUtils.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/dom/DOM.hpp>
#include <iostream>

using namespace xercesc;

main(int argC, char* argV[]){
        XMLPlatformUtils::Initialize();
}

/* EOF */

g++ main.cpp
/tmp/ccJftyNg.o(.text+0x17): In function `main':
: undefined reference to `xercesc_2_3::XMLUni::fgXercescDefaultLocale'
/tmp/ccJftyNg.o(.text+0x1c): In function `main':
: undefined reference to `xercesc_2_3::XMLPlatformUtils::Initialize(char 
const*, char const*, xercesc_2_3::PanicHandler*, 
xercesc_2_3::MemoryManager*)'
collect2: ld returned 1 exit status

What's up with that?

I've attempted various things such as of -I $XERCESCROOT/include -L 
$XERCESCROOT/lib to no avail.  My guess it's some kind of linker flag, or 
similar.  I'm no C++ expert, so I may be missing something fairly basic.

STH

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

Reply via email to