[odb-users] Compilation time issue: undefined reference to `odb::access::object_traits

Charles Jabbour Gédéon charles.jabbourgedeon at gmail.com
Tue Oct 4 16:01:58 EDT 2011


First of all, sorry for my english, i am a french student who try to make
your very interesting persistent framework work ! It is for my final
internship !

So, i got an error when i try to compile my project:

 undefined reference to

I can't manage to work around this problem so i ask for some help if you
have any time.
I have attached a copy of the class that i try to make persistant. I lcreate
the odb specific file by running this command:

odb -d mysql --generate-query --generate-schema coque.hxx

and i have copied the minimal code for main():

        MyCoque coque("random");

        auto_ptr<database> db (create_database (argc, argv));
        transaction t (db->begin ());
        db->persist (coque);

Any hint will be very valuable for me, i am quite stuck, and i am sure it is
due to my inexperience.

Thx in advance,
Best regards,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: coque.hxx
Type: text/x-c++hdr
Size: 3297 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/odb-users/attachments/20111004/f35bc25d/coque.hxx

More information about the odb-users mailing list