This is the build output:
Code: Select all
----------Building project:[ lcdsim - Debug ]----------
gcc -c "D:/Dateien/CrossWorks/icps-sw/src/lcdsim/main.cpp" -g -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -Id:\wxWidgets-2.8.10\lib\gcc_dll\mswud -Id:\wxWidgets-2.8.10\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -D__WX__ -DWIN32 -o ./Debug/main.o "-I." "-I.."
gcc -c "D:/Dateien/CrossWorks/icps-sw/src/lcdsim/lcddrv.cpp" -g -mthreads -DHAVE_W32API_H -D__WXMSW__ -D__WXDEBUG__ -D_UNICODE -Id:\wxWidgets-2.8.10\lib\gcc_dll\mswud -Id:\wxWidgets-2.8.10\include -DWXUSINGDLL -Wno-ctor-dtor-privacy -pipe -fmessage-length=0 -D__WX__ -DWIN32 -o ./Debug/lcddrv.o "-I." "-I.."
In file included from c:\mingw-4.4.0\bin\../lib/gcc/mingw32/4.4.0/include/c++/cwchar:47,
from c:\mingw-4.4.0\bin\../lib/gcc/mingw32/4.4.0/include/c++/bits/postypes.h:42,
from c:\mingw-4.4.0\bin\../lib/gcc/mingw32/4.4.0/include/c++/iosfwd:42,
from c:\mingw-4.4.0\bin\../lib/gcc/mingw32/4.4.0/include/c++/ios:39,
from c:\mingw-4.4.0\bin\../lib/gcc/mingw32/4.4.0/include/c++/ostream:40,
from c:\mingw-4.4.0\bin\../lib/gcc/mingw32/4.4.0/include/c++/iostream:40,
from D:/Dateien/CrossWorks/icps-sw/src/lcdsim/lcddrv.cpp:11:
c:\mingw-4.4.0\bin\../lib/gcc/mingw32/4.4.0/../../../../include/wchar.h:495: error: expected constructor, destructor, or type conversion before '_wexecl'
c:\mingw-4.4.0\bin\../lib/gcc/mingw32/4.4.0/../../../../include/wchar.h:496: error: expected constructor, destructor, or type conversion before '_wexecle'
c:\mingw-4.4.0\bin\../lib/gcc/mingw32/4.4.0/../../../../include/wchar.h:497: error: expected constructor, destructor, or type conversion before '_wexeclp'
c:\mingw-4.4.0\bin\../lib/gcc/mingw32/4.4.0/../../../../include/wchar.h:498: error: expected constructor, destructor, or type conversion before '_wexeclpe'
....
In wchar.h you got many lines with:
Code: Select all
#include <stdint.h> /* For intptr_t. */
_CRTIMP intptr_t __cdecl __MINGW_NOTHROW _wexecl (const wchar_t*, const wchar_t*, ...);
....
If I replace intptr with unsigned int the error disappears.
Looks like stdint.h doesn't get included?