hihi
When I try to compile the xerces example, the screen display the following
error message:
/tmp/ccUnRyBh.o(.text+0x23): In function `main`:
:undefined reference to `xercesc_3_0::XMLUni::fgXercescDefaultLocale`
/tmp/ccUnRyBh.o(.text+0x28): In function `main`:
:undefined reference to `xercesc_3_0::XMLPlatformUtils::Initialize(char
const*, char const*,
xercesc_3_0::PanicHandler*,xercesc_3_0::MemoryManager*)`
Command (Filename is testing2.cpp): g++ -otesting2.out testing2.cpp
testing2.cpp:
#include <xercesc/util/PlatformUtils.hpp>
// Other include files, declarations, and non-Xerces-C++ initializations.
using namespace xercesc;
int main(int argc, char* argv[])
{
try {
XMLPlatformUtils::Initialize();
}
catch (const XMLException& toCatch) {
// Do your failure processing here
return 1;
}
// Do your actual work with Xerces-C++ here.
XMLPlatformUtils::Terminate();
// Other terminations and cleanup.
return 0;
}
--
View this message in context:
http://www.nabble.com/Undefined-reference-when-compiles-xerces-example-tp24182941p24182941.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.