AW: [EXTERNAL]Re: [odb-users] Cannot find Boost header file

Seiler Matthias SIGCH Matthias.Seiler at stadlerrail.com
Tue Jul 30 02:29:01 EDT 2024


Thanks for your help! Unfortunately, it now seems not to find odb headers:

1>C:\gitlab\ProjectName\generated\Table-odb.cxx(7,10): error C1083: Cannot open include file: 'odb/pre.hxx': No such file or directory
1>C:\gitlab\ProjectName\ProjectClass.h(5,10): error C1083: Cannot open include file: 'odb/database.hxx': No such file or directory


-----Ursprüngliche Nachricht-----
Von: Boris Kolpackov <boris at codesynthesis.com> 
Gesendet: Montag, 29. Juli 2024 15:24
An: Seiler Matthias SIGCH <Matthias.Seiler at stadlerrail.com>
Cc: odb-users at codesynthesis.com
Betreff: [EXTERNAL]Re: [odb-users] Cannot find Boost header file

Seiler Matthias SIGCH <Matthias.Seiler at stadlerrail.com> writes:

> 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 also added the path to boost (i.e.
> -I "C:\Program Files\boost\boost_1_85_0\boost"), which results in the 
> same error.

Try adding -I "C:\Program Files\boost\boost_1_85_0" instead (as can be seen from the above error, the Boost headers are included with the boost/ prefix).



More information about the odb-users mailing list