[odb-users] Headers organisation and include prefix

MM finjulhich at gmail.com
Fri Jun 6 13:00:28 EDT 2014

On 6 June 2014 15:20, Boris Kolpackov <boris at codesynthesis.com> wrote:

> Hi,
> MM <finjulhich at gmail.com> writes:
> >            #include "dir1/g-odb.hxx"   //// wrong, this doesn't exist
> all.
> ODB would add the *-odb.hxx include if this header contains definitions
> of some persistent objects or value types. You have all the pragmas in a
> separate file (dir1_odb/h.hxx) which is what you actually want to compile
> with the ODB compiler. What you also need to make sure is that this file
> is marked as the definition file of all the persistent entities found in
> dir1/g.hxx ('db definition' pragma).
Indeed, 1 of the value pragma did not have the definition qualifier.
Thank you immensely for your help,

> If that doesn't help, then that would indicate there is a bug in ODB.
> In that case, can you send me an archive with all the files you have
> mentioned placed in their relevant directories so that I can try to
> reproduce this?
> Boris

More information about the odb-users mailing list