[odb-users] Cannot find Boost header file

Seiler Matthias SIGCH Matthias.Seiler at stadlerrail.com
Thu Jul 25 07:19:30 EDT 2024


Hi Boris,

I'd like to include the runtime library for Boost, however, when I enable the profile, it throws the following:

1>C:\odb\debug\include/odb/boost/date-time/mssql/gregorian-mapping.hxx:7:10: fatal error: boost/date_time/gregorian/gregorian_types.hpp: No such file or directory
1>    7 | #include <boost/date_time/gregorian/gregorian_types.hpp>
1>      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I call ODB like this:

odb -v -I C:\odb\debug\include --std c++14 --profile boost -d mssql --generate-query --output-dir generated --generate-schema --schema-format embedded Tables\*.hxx

I also added the path to boost (i.e. -I "C:\Program Files\boost\boost_1_85_0\boost"), which results in the same error.

The ODB version is 2.5.0-b.27, build with build2 v0.17.0 [1] and Boost's version is 1.85.0

You can find the full build output here [2].

Can you help me solving this issue?

Cheers,
Matthias

[1] https://www.codesynthesis.com/products/odb/doc/install-build2.xhtml#windows
[2] https://rentry.co/odb-boost-profile






More information about the odb-users mailing list