[odb-users] Undefined symbols

Boris Kolpackov boris at codesynthesis.com
Thu Sep 25 13:57:40 EDT 2014


Hi Adnan,

Adnan RIHAN <adnan at rihan.fr> writes:

> Undefined symbols for architecture x86_64:

My first guess is that you have built 32-bit ODB runtimes. I don't know
what is the default target for your compiler. Perhaps you need to add
something like '-m 64' to CXXFLAGS when running configure for libodb,
libodb-qt, and libodb-sqlite.


> > LIBS += -L/usr/local/lib -lodb -lodb-qt -lodb-sqlite

Doesn't really matter for shared libraries, but, generally, you would
want to list libraries in the most specific to most generic order, that
is: libodb-qt -lodb-sqlite -lodb.

Boris



More information about the odb-users mailing list