[odb-users] Unknown action or bug in odb compiler
Александр Матушкин
sysmaker at compot.ru
Tue Dec 22 14:04:05 EST 2015
Thank you very much. It worked.
--at-once solved my problem.
Alexandr.
-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com]
Sent: Tuesday, December 22, 2015 2:27 PM
To: Александр Матушкин
Cc: odb-users at codesynthesis.com
Subject: Re: [odb-users] Unknown action or bug in odb compiler
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