[odb-users] undefined reference to `person::person'

Boris Kolpackov boris at codesynthesis.com
Thu Nov 18 15:54:29 EST 2010


Hi Myoungkyu,

Myoungkyu Song <mksong at vt.edu> writes:

> driver.cxx:(.text+0x25d): undefined reference to
> `person::person(std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const&, std::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&, unsigned short)'

You person.hxx declares this constructor but it is not implemented
anywhere in your code. Try to add person.cxx and implement this
constructor there. The same goes for other undefined symbols.

Also, in the future, please do not attached the generated code to
your email since it can easily be obtained by compiling the header.
For other tips on posting to this mailing list, please see the
Posting Guidelines page:

http://www.codesynthesis.com/support/posting-guidelines.xhtml

Boris



More information about the odb-users mailing list