Page 1 of 1

Mingw 4.4.0 problem

Posted: Wed Nov 18, 2009 7:56 pm
by rekisum
Hi,

I just tried the new 2.0 version with mingw 4.4.0 and wxwidgets 2.8.10.
My CodeLite 1.0 project that used to compile well with the previous mingw 3.4.5 version now throws errors.
  • 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'
    c:\mingw-4.4.0\bin\../lib/gcc/mingw32/4.4.0/../../../../include/wchar.h:499: error: expected constructor, destructor, or type conversion before '_wexecv'
Maybe someone yet stumbled upon it?
Something with wide characters and wxwidgets?
Thanks

Re: Mingw 4.4.0 problem

Posted: Wed Nov 18, 2009 8:02 pm
by eranif
What is the exact error in the build log?
This is the cause, but what triggers it? paste here the full build log

Note that gcc 4.4.0 is by far more strict than gcc3.4.5
Eran

Re: Mingw 4.4.0 problem

Posted: Thu Nov 19, 2009 12:27 pm
by rekisum
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?

Re: Mingw 4.4.0 problem

Posted: Thu Nov 19, 2009 12:38 pm
by rekisum
Hi,

I indead included the wrong stdint.h from somwhere else. :oops:
Seems to work now. :D
Thanks!