[odb-users] Undefined symbols

Adnan RIHAN adnan at rihan.fr
Fri Sep 26 04:33:05 EDT 2014


 
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<QSharedPointer<Category> >::takeAt(int) in CategoryTableModel.o
>   "odb::vector_impl::insert(unsigned long, unsigned long)", referenced from:
>       QOdbList<QSharedPointer<Category> >::insert(int, QSharedPointer<Category> 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).



More information about the odb-users mailing list