[odb-users] Compilation Error with ODB Qt Profile: C++11
Requirement and Missing QDateTime Header
Boris Kolpackov
boris at codesynthesis.com
Wed Apr 16 06:01:17 EDT 2025
> *
> ODB Version: 2.4.0
The latest released ODB version is 2.5.0, I suggest you switch to
that.
> Why does Qt still report a missing C++11 support even with
> --std c++11?
I am not sure. With --std c++11 the ODB compiler will invoke GCC
in the C++11 mode so it must be something to do with Qt. You can
try running the ODB compiler with -v to see the options passed to
GCC.
> The QDateTime header is not found despite providing -I QT_ROOT/include.
Qt headers can be included as either <QDateTime> or <QtCore/QDataTime>.
Depending on the style, you may need to provide a different -I path (or
both). Again, this is really a Qt question, not ODB.
More information about the odb-users
mailing list