AW: [odb-users] compiling under MinGW

Christian Sell christian at gsvitec.com
Tue Dec 16 04:20:05 EST 2014


As an addendum: trying to use the include files from the mingw that comes
with the precompiled odb distribution yields even more problems (at first
shared_ptr unknown, after defining __GXX_EXPERIMENTAL_CXX0X__ errors
abound). Trying to use the completely outdated mingw compiler from the odb
distro is not an option. Seems like we're lost with mingw32 and odb. 

When I first saw the ODB pragma syntax, I was intrigued by the approach for
maintaining mapping info. Meanwhile, I am not sure at all..

-----Ursprüngliche Nachricht-----
Von: odb-users-bounces at codesynthesis.com
[mailto:odb-users-bounces at codesynthesis.com] Im Auftrag von Christian Sell
Gesendet: Montag, 15. Dezember 2014 18:57
An: odb-users at codesynthesis.com
Betreff: [odb-users] compiling under MinGW w/ CMake

Hello,

 

what a cocktail! MinGw 4.8 + Odb + CMake!

 

I have a simple project setup with the above ingredients. I am able to build
now (took me waaay too long), but as soon as I add a shared_ptr member
(along with the appropriate #include and using clause), I get a message

 

"shared_ptr does not name a type"

 

Not being lazy, I figure out the include path for MinGW (why the h*** isn't
it passed to the odb compiler automatically?) and pass it via -I to the odb
compiler. Now it gets interesting: 300 lines of obscure error messages, of
which I include just the first few:

 

In file included from
C:/MinGW/mingw32/lib/gcc/mingw32/4.8.1/include/c++/string:41:0,

                 from <standard-odb-prologue>:7:

C:/MinGW/mingw32/lib/gcc/mingw32/4.8.1/include/c++/bits/allocator.h:92:45:
error: expected template-name before '<' token

C:/MinGW/mingw32/lib/gcc/mingw32/4.8.1/include/c++/bits/allocator.h:92:45:
error: expected '{' before '<' token

C:/MinGW/mingw32/lib/gcc/mingw32/4.8.1/include/c++/bits/allocator.h:92:45:
error: expected unqualified-id before '<' token

In file included from
C:/MinGW/mingw32/lib/gcc/mingw32/4.8.1/include/c++/string:41:0,

                 from <standard-odb-prologue>:7:

 

can someone shed light on this?

 

Regards,

Chris





More information about the odb-users mailing list