Hi,
I am not sure which mailing list to use. Sorry if I am not supposed to send to both.
I have configured quickfix build with "--enable-share=no --enable-static=yes", and then run "make clean" and "make".
Then, I compile my app with g++, and I got:
[cc] /usr/local/lib/libquickfix.a(LIBXML_DOMDocument.o): In function `FIX::LIBXML_DOMDocument::load(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
[cc] /root/quickfix/src/C++/LIBXML_DOMDocument.cpp:136: undefined reference to `xmlParseFile'
[cc] /usr/local/lib/libquickfix.a(LIBXML_DOMDocument.o): In function `~LIBXML_DOMDocument':
[cc] /root/quickfix/src/C++/LIBXML_DOMDocument.cpp:113: undefined reference to `xmlFreeDoc'
[cc] /root/quickfix/src/C++/LIBXML_DOMDocument.cpp:113: undefined reference to `xmlFreeDoc'
[cc] /root/quickfix/src/C++/LIBXML_DOMDocument.cpp:113: undefined reference to `xmlFreeDoc'
[cc] /usr/local/lib/libquickfix.a(LIBXML_DOMDocument.o): In function `FIX::LIBXML_DOMDocument::getNode(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
[cc] /root/quickfix/src/C++/LIBXML_DOMDocument.cpp:153: undefined reference to `xmlXPathNewContext'
[cc] /root/quickfix/src/C++/LIBXML_DOMDocument.cpp:154: undefined reference to `xmlXPathEval'
[cc] /root/quickfix/src/C++/LIBXML_DOMDocument.cpp:160: undefined reference to `xmlXPathFreeContext'
[cc] /root/quickfix/src/C++/LIBXML_DOMDocument.cpp:165: undefined reference to `xmlXPathFreeContext'
[cc] /root/quickfix/src/C++/LIBXML_DOMDocument.cpp:166: undefined reference to `xmlXPathFreeObject'
[cc] /usr/local/lib/libquickfix.a(LIBXML_DOMDocument.o): In function `FIX::LIBXML_DOMAttributes::get(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)':
[cc] /root/quickfix/src/C++/LIBXML_DOMDocument.cpp:39: undefined reference to `xmlGetProp'
[cc] /usr/local/lib/libquickfix.a(LIBXML_DOMDocument.o): In function `FIX::LIBXML_DOMDocument::load(std::basic_istream<char, std::char_traits<char> >&)':
[cc] /root/quickfix/src/C++/LIBXML_DOMDocument.cpp:123: undefined reference to `xmlParseDoc'
[cc] collect2: ld returned 1 exit status
Did I do anything wrong?
If I use the dynamic library (libquickfix.so.10.0.0), I can compile my app correctly.
Thanks in advance.
Cheers,
Hei
|