[odb-users] Re: when running odb compiler get error "#error
libodb-mysql header included in odb-compiled header" (Typos fixed)
Boris Kolpackov
boris at codesynthesis.com
Tue Oct 24 08:51:28 EDT 2017
Richard Topolewski <topolewr at cooley.edu> writes:
> In file included from /usr/include/odb/mysql/version.hxx:10:0,
> from myClass1-odb.hxx:83,
> from usingClass.h:24,
> from myClass2.h:10:
> :/usr/include/odb/mysql/details/config.hxx:15:4: error: #error libodb-mysql
> header included in odb-compiled header
You shouldn't include *-odb.hxx headers in your object model headers, at
least not unconditionally:
#ifndef ODB_COMPILER
# include "myClass1-odb.hxx"
#endif
Boris
More information about the odb-users
mailing list