[odb-users] Unknown action or bug in odb compiler

Boris Kolpackov boris at codesynthesis.com
Tue Dec 22 06:26:38 EST 2015


Hi,

Александр Матушкин <sysmaker at compot.ru> writes:
 
> #include "smarthome_types.h"
> 
> namespace smarthouse {
>   #pragma db object(Node) 
>   #pragma db member(Node::id) id
> }
>
> In <smarthome_types.h> present class Node. In class Node present filed id as
> 'int';
> 
> But odb-thrift.sql is empty:

The reason it is empty (and the *-odb.hxx files) is because ODB thinks stuff
will get generated when you compile smarthome_types.h. But since you have no
plans to compile this file, you need to either use the 'definition' pragma
(Section 14.3.7) or the --at-once ODB compiler option (odb(1)).

Boris



More information about the odb-users mailing list