[odb-users] Qt + Odb

Boris Kolpackov boris at codesynthesis.com
Wed Sep 7 14:17:29 EDT 2011


Hi Michal,

Michal Snoch <kontakt at msnoch.pl> writes:

> QT application works fine, odb by himself also, but when i'm trying to
> compile (via odb compiller) file that contains QString - it throws 
> "fatal error: QString: No such file or directory".
>
> /usr/local/odb/bin/odb -d pgsql -p qt --hxx-suffix .hpp --ixx-suffix .ipp
> --cxx-suffix .cpp file.h

I think you need to add the -I options to the above command line with the
path to the Qt headers, something like, -I ..../qt4 -I ..../qt4/QtCore.
You must be already passing something like this to the C++ (g++) compiler
when  building your Qt-based applications.

Boris



More information about the odb-users mailing list