[odb-users] gcc-5.4: cannot link code produced with odb

Boris Kolpackov boris at codesynthesis.com
Tue Nov 29 10:53:57 EST 2016

Hi Vladimir,

Vladimir Tsichevski <tsichevski at gmail.com> writes:

> I'm trying to build the odb person example provided with the odb manual. My
> system is Ubunti 16, odb-2.4, and the default compiler is gcc-5.4. I got the
> following linking problems:

Ubuntu 16.04 libraries appear to be broken. The bug report is here:


> But I can successfully link the object files if they were compiled with
> gcc-4.8 on the same system:

I am surprised this worked for you. My understanding is that libodb and
libodb-<db> libraries are built with different compiler versions (and
thus use different ABIs) and are not usable together.

> Is there any workaround for this problem?

The only workaround is to build the libraries from source. Also adding
a comment/vote to the bug might speed up its resolution.


More information about the odb-users mailing list