Fwd: [odb-users] boost profile not found

blob blob blob84 at gmail.com
Wed Feb 7 04:07:18 EST 2018


I have compiled with odb without the profile boost :
*odb -v -d mysql -I /usr/include/boost and it compiles --generate-schema
--generate-query --generate-session employee.hxx*

but when I compile with g++ the employess-odb.cxx file I get these errors:

*employee-odb.cxx: In static member function ‘static void
odb::access::object_traits_impl<employer,
(odb::database_id)0u>::employees_traits::init(odb::access::object_traits_impl<employer,
(odb::database_id)0u>::employees_traits::value_type&, const
odb::access::object_traits_impl<employer,
(odb::database_id)0u>::employees_traits::data_image_type&,
odb::database*)’:*
*employee-odb.cxx:134:23: error: no matching function for call to
‘odb::mysql::value_traits<boost::uuids::uuid,
(odb::mysql::database_type_id)16u>::set_value(odb::access::object_traits<employee>::id_type&,
const buffer&, const long unsigned int&, const my_bool&)’*
*           i.value_null);*


2018-02-06 18:36 GMT+01:00 blob blob <blob84 at gmail.com>:

>
> ---------- Forwarded message ----------
> From: blob blob <blob84 at gmail.com>
> Date: 2018-02-06 18:32 GMT+01:00
> Subject: Re: [odb-users] boost profile not found
> To: "Jeroen N. Witmond" <jnw at xs4all.nl>
>
>
> Thank you for your interest.
> I am using debian 9 and libodb-boost and libodb-boost-dev are installed.
>
>
> 2018-02-06 18:11 GMT+01:00 Jeroen N. Witmond <jnw at xs4all.nl>:
>
>> On 2018-02-06 17:57, blob blob wrote:
>>
>>> Hello I'm trying to compile the boost example,
>>> when I compile with odb i get:
>>> odb -v -d mysql --profile boost --generate-schema --generate-query
>>> --generate-session employee.hxx
>>> Profile search paths:
>>>  /usr/include/c++/6
>>>  /usr/include/x86_64-linux-gnu/c++/6
>>>  /usr/include/c++/6/backward
>>>  /usr/lib/gcc/x86_64-linux-gnu/6/include
>>>  /usr/local/include
>>>  /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed
>>>  /usr/include/x86_64-linux-gnu
>>>  /usr/include
>>> odb: error: unable to locate options file for profile 'boost'
>>>
>>
>> You did not specify which OS or distribution you use, but my guess is
>> that you need to install the packages named something like libodb-boost and
>> libodb-boost-dev.
>>
>> HTH.
>>
>> Jeroen.
>>
>
>
>


More information about the odb-users mailing list