[odb-users] linkage problems using mysql database

Boris Kolpackov boris at codesynthesis.com
Tue Jan 17 09:12:37 EST 2017


Hi Amir,

Amir Developer <amir.thedev at gmail.com> writes:

> I'm trying to compile and link the hello sample but with no luck.
> Env: Ubuntu 16.04.1 LTS
> Compiler: g++ 5.4.0
> odb: installed through APT version 2.4.0
> database: MySQL

This is a known Ubuntu bug:

https://bugs.launchpad.net/ubuntu/+source/libodb/+bug/1588330


> tried a locally compiled version of odb-mysql.so too but that didn't help
> same error

You need to compile both libodb and libodb-mysql with the same compiler.
Just compiling libodb-mysql and using libodb from APT won't work.

Boris



More information about the odb-users mailing list