[odb-users] Undefined symbols
Adnan RIHAN
adnan at rihan.fr
Fri Sep 26 05:58:54 EDT 2014
Finally, I’ve rebuilt every lib with gcc-4.9 and -m64 on CPPFLAGS.
And I need to add the -lodb to avoid some undefined symbols.
On 26 septembre 2014 at 10:33:22, Adnan RIHAN (adnan at rihan.fr(mailto:adnan at rihan.fr)) wrote:
>
> Hi,
>
>
> On 25 septembre 2014 at 20:04:06, Boris Kolpackov (boris at codesynthesis.com(mailto:boris at codesynthesis.com)) wrote:
>
> > Perhaps you need to add
> > something like '-m 64' to CXXFLAGS when running configure for libodb,
> > libodb-qt, and libodb-sqlite.
>
> It works thanks !
>
> > > > 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.
>
> Thanks for the hint, but unfortunately, without -lodb, I get some other undefined symbols
> > Undefined symbols for architecture x86_64:
> > "odb::vector_impl::erase(unsigned long, unsigned long)", referenced from:
> > QOdbList >::takeAt(int) in CategoryTableModel.o
> > "odb::vector_impl::insert(unsigned long, unsigned long)", referenced from:
> > QOdbList >::insert(int, QSharedPointer const&) in CategoryTableModel.o
> > ld: symbol(s) not found for architecture x86_64
>
> So I’ve added the other libs also. Even after building with -m64, I still get this error if I don’t add « -lodb » =/
>
> Thanks for your help
> --
> Cordialement, Adnan RIHAN.
> Directeur-Gérant de Eolis-Software, société de services informatiques.
>
> GPG: 5675-62BA (https://keybase.io/max13/key.asc)
> -> Si vous n’utilisez pas GPG mais souhaitez quand même m’envoyer un e-mail chiffré: (https://encrypt.to/0x567562BA).
--
Cordialement, Adnan RIHAN.
Directeur-Gérant de Eolis-Software, société de services informatiques.
GPG: 5675-62BA (https://keybase.io/max13/key.asc)
-> Si vous n’utilisez pas GPG mais souhaitez quand même m’envoyer un e-mail chiffré: (https://encrypt.to/0x567562BA).
More information about the odb-users
mailing list