[odb-users] include odb/details/config.h on Windows / Eclipse CDT /
MinGW ?
astek.rbasset
astek.rbasset at tisseo.fr
Thu Dec 12 05:46:04 EST 2013
Hello,
I'm trying to build C++ application with odb libs to access an sqlite DB.
I want it to be portable Linux / Windows.
Linux building is OK (different version of ODB / Boost, but same source)
On Windows XP, I'm using Eclipse (Kepler) CDT and MinGW as a compiler.
My includes are the following ones :
<language name="C++ Source File">
<includepath>D:\MinGW\msys\1.0\include</includepath>
<includepath workspace_path="true">/PlanControle/includes</includepath>
<includepath>D:\boost_1_55_0</includepath>
<includepath>D:\odb\libodb-2.3.0</includepath>
<includepath>D:\odb\libodb-boost-2.3.0</includepath>
<includepath>D:\odb\libodb-sqlite-2.3.0</includepath>
<includepath>D:\odb\odb-2.3.0-i686-windows\mingw\include</includepath>
</language>
I'm not compiling with MSVC, but I am on windows target.
My question : which conf should be preprocessed in config.hxx ?
#ifdef _MSC_VER
# include <odb/details/config-vc.h>
#elif defined(ODB_COMPILER)
# ...
#else
# include <odb/details/config.h>
# ...
#endif
Do I need to define _MSC_VER ? ODB_COMPILER ?
Nowadays, building cannot find
odb/details/config.h
nor
odb/details/config-vc.h
I'm a bit confused...
Thanks for any help.
Rodolphe
More information about the odb-users
mailing list