[odb-users] clang and libc++

Daniel James danielpeterjames at gmail.com
Thu Apr 26 10:14:26 EDT 2012


Hi All

I'm running into a problem when using the binary MacOS ODB compiler
and libodb*.dylib compiled with clang++ and linked to libc++.

Is this supported?

Here's an example of the link error I'm getting:

  "odb::sqlite::default_value_traits<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >,
(odb::sqlite::database_type_id)2>::set_image(odb::details::basic_buffer<char>&,
unsigned long&, bool&, std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&)",
referenced from:
      odb::access::object_traits<person>::init(odb::access::object_traits<person>::image_type&,
person const&, odb::sqlite::statement_kind) in person-odb.o


Is it that the templates are not being instantiated for
std::__1::basic_string by the ODB plugin?

If this is the case can I compile/configure the ODB plugin in such a
way that it will know about libc++ classes?

Many thanks,

Daniel



More information about the odb-users mailing list