[Quickfix-developers] namespaces for libpthread and libxml?
Brought to you by:
orenmnero
From: Cicero, M. <mc...@va...> - 2002-03-15 23:28:29
|
Hello, I'm going to take a look at this more when I get in on Monday, but was wondering if any of you ran into this. I've successfully build QuickFIX on Linux (2.4.10) using gcc 3.0.4 and am ensuring strict ISO C++ using -pedantic. However, when I use FIX::SocketInitiator, the linker can't find the thread libs, etc. I'm sure it must be something simple that I'm overlooking. > make gcc -fexceptions -finline-functions -pedantic -I/usr/local/include myfix.cpp -static -static-libgcc -lpthread -lxml -lnsl -L/usr/local/lib -lstdc++ -lquickfix -llog4cpp -o myfix /usr/local/lib/libquickfix.a(Initiator.o): In function `FIX::thread_spawn(void* (*)(void*), void*)': Initiator.o(.gnu.linkonce.t._ZN3FIX12thread_spawnEPFPvS0_ES0_+0x13): undefined reference to `pthread_create' /usr/local/lib/libquickfix.a(MessageValidator.o): In function `FIX::MessageValidator::readLibXml(std::string const&)': MessageValidator.o(.text+0x713): undefined reference to `xmlCreatePushParserCtxt' MessageValidator.o(.text+0x767): undefined reference to `xmlParseChunk' MessageValidator.o(.text+0x782): undefined reference to `xmlParseChunk' MessageValidator.o(.text+0x793): undefined reference to `xmlFreeParserCtxt' collect2: ld returned 1 exit status make: *** [myfix] Error 1 Thanks, Marlon |