[odb-users] problem with static linking
Boris Kolpackov
boris at codesynthesis.com
Tue Nov 10 10:37:29 EST 2015
Hi Paul,
Paul Harrison <paul.harrison at manchester.ac.uk> writes:
> /usr/local/lib/libodb-mysql.a(connection-factory.o): In function
> `~mysql_thread_init':
> /opt/packages/odb/libodb-mysql-2.3.0/odb/mysql/connection-factory.cxx:79:
> undefined reference to `THR_KEY_mysys'
It is strange that you get this error since ODB tries to detect whether
this symbol is visible. Perhaps you built libodb-mysql and linking your
application using different libmysqlclient libraries? Check the config.h
file in libodb-mysql/odb/mysql/details/ for LIBODB_MYSQL_THR_KEY_VISIBLE.
If it is defined, then the link test (see config.log for the command line)
somehow manages to "see" this symbol while your command line does not.
Boris
More information about the odb-users
mailing list