[odb-users] how compile odb on windows?

Boris Kolpackov boris at codesynthesis.com
Sun Apr 24 10:44:55 EDT 2022

五彩石 <769442772 at qq.com> writes:

> I tried use /"odb-2.4.0-i686-windows"/, /c++11-sqlite-vc12/ project is
> compile and run normally in odb-examples-2.4.0,but compile
> /"qt5-sqlite-vc12" /have
> warning:D:/Qt/5.15.2/msvc2019/include/QtCore/qbasicatomic.h(61,4): error
> GBD81D969: #error "Qt requires C++11 support" edit
> odb\etc\odb\default.options add options /-I D:/Qt/5.15.2/msvc2019/include/
> and /--std c++11/,It still doesn't work

I am not sure why Qt still complains about C++11 after you've added
--std c++11. Perhaps GCC bundled with ODB 2.4.0 is too old. You could
try the latest pre-release of ODB (which uses a more recent version of
GCC) by following these instructions:


More information about the odb-users mailing list