[odb-users] Error creating static library from ODB generated files

Nicholas Cremonesi nicholas.cremonesi at gmail.com
Thu Apr 2 06:27:58 EDT 2015


Hello everyone,

I'm trying to compile my generated "-odb.o" files into a static library
('.a') under Windows using MinGW, but when I link to the generated library
my compiler crashes with lot of errors like this:

"./libtest.a(MyClass-odb.o):MyClass-odb.cxx:(.text+0xdac): undefined
reference to `_imp___ZN3odb6sqlite11transaction7currentEv'" ecc..

What am I doing wrong?
I create the library using:

"ar rvs /path_to_lib/myClass.a *.o"


More information about the odb-users mailing list