I'm trying to compile a quickfix program on Ubuntu but I get undefined references to FIX::
, as if the -lquickfix
option were not placed in the g++ command. Actually, I get the same result without this link option.
First I've downloaded, compiled, and run the test of quickfix. Everything worked fine. I did the sudo make install
and checked the library was cached after runing sudo ldconfig
:
$ ldconfig -p | grep quickfix
libquickfix.so.16 (libc6,x86-64) => /usr/local/lib/libquickfix.so.16
libquickfix.so (libc6,x86-64) => /usr/local/lib/libquickfix.so
This is the g++ command I used:
$ g++ -fexceptions -finline-functions -lquickfix -lpthread -lxml2 -std=c++11 Application.cpp tradeclient.cpp -o tradeclient
BTW, I've run the same quickfix intallation steps on Debian and the compile command worked fine.
I've read posts like Libraries in /usr/local/lib not found, used the -L
option for link directories, and -I
for include paths but I'm still not finding a solution.