[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Mingw-cross-env-list] Problem cross compiling with -std=c++0x
From: |
Lothar May |
Subject: |
[Mingw-cross-env-list] Problem cross compiling with -std=c++0x |
Date: |
Sat, 20 Nov 2010 16:39:38 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 |
Hi,
I'm having trouble cross compiling with the -std=c++0x option. Now I
have a small test case which clearly shows the problem:
-- cut here --
#ifndef WIN32
#error Define is missing!
#endif
int
main()
{
return 0;
}
-- cut here --
I pasted the upper code into cpp0x.cpp. Running
i686-pc-mingw32-g++ cpp0x.cpp
is fine, but running
i686-pc-mingw32-g++ -std=c++0x cpp0x.cpp
leads to the error "Define is missing!"
Does anyone know what can be done about this?
Regards,
Lothar
- [Mingw-cross-env-list] Problem cross compiling with -std=c++0x,
Lothar May <=