[odb-users] create_schema - compile error

Boris Kolpackov boris at codesynthesis.com
Tue Mar 18 06:55:28 EDT 2014


Hi Kevin,

lemonnierk at ulrar.net <lemonnierk at ulrar.net> writes:

> When I try to use the function schema_catalog::create_schema(db) as
> seen in the examples, I get this
> 
> /usr/local/include/odb/schema-catalog.hxx:105:43: error: invalid use
> of incomplete type ‘class odb::database’

Yes, that's a missing include. I've fixed it for the next release.
An easy workaround is to include <odb/database.hxx> before 
<odb/schema-catalog.hxx> in your code (which is how it is done in
all the tests/examples and is the reason we haven't picked it up).

Thanks for reporting this!

Boris



More information about the odb-users mailing list