[odb-users] Prologue Order

Sachin Kumar sachnk at gmail.com
Thu Jan 30 14:41:18 EST 2014


Greetings,

I'm using ODB v2.3.0 64-bit with Visual Studio 2013. My application uses
precompiled headers, which means I must include the precompiled header at
the beginning of each cxx file.

The --cxx-prologue option would ideally solve this. However, the prologue
isn't the true prologue as it seems ODB is including <odb/pre.hxx> first,
and then user defined prologues.

What's puzzling is that this behavior is different than XSD v3.3. The
--cxx-prologue option with XSD 3.3 works as expected (i.e. it's really the
prologue).

Is there a workaround for this?


Thanks,

Sachin Kumar


More information about the odb-users mailing list