I am attemping to build wxWidgets 2.5.2 using MingGW (mingw32-make): gcc (GCC) 3.4.1 (mingw special) g++ (GCC) 3.4.1 (mingw special) GNU Make 3.80 %PATH% includes a path to c:\mingw (my MingGW install) %WXDIR%=d:\development\wxWidgets\wxWidgets-2.5.2 (Installed MSYS 1.0.10 then binutils-2.15.90-20040222-1.tar.gz, cc-core-3.4.1-20040711-1.tar.gz, and gcc-g++-3.4.1-20040711-1.tar.gz on top)
From the ~\build\msw dir, I type: mingw32-make -f makefile.gcc UNICODE=1 BUILD=debug SHARED=1 VENDOR=CW
Everthing seems to go fine until I get this: ---/snip/--- g++ -c -o gcc_mswuddll\coredll_msgout.o -g -O0 -DHAVE_W32API_H -D__WXMSW__ -D_ _WXDEBUG__ -D_UNICODE -I..\..\include -I..\..\lib\gcc_dll\mswud -Wall -I..\..\sr c\tiff -I..\..\src\jpeg -I..\..\src\png -I..\..\src\zlib -I..\..\src\regex -I..\ ..\src\expat\lib -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 ../../src/co mmon/msgout.cpp In file included from ../../src/common/msgout.cpp:56: ../../include/wx/msw/private.h: In constructor `WinStruct<T>::WinStruct()': ../../include/wx/msw/private.h:328: error: `cbSize' undeclared (first use this f unction) ../../include/wx/msw/private.h:328: error: (Each undeclared identifier is report ed only once for each function it appears in.) mingw32-make: *** [gcc_mswuddll\coredll_msgout.o] Error 1 ---/snip/---
What am I doing wrong? How can I fix this? Using the same wxWidgets archive/dir I can use MSVC 6 or VS.NET to compile just fine (same build options).
The specific error above was fixed by changing "cbSize =" to "this->cbSize =" ... I then got other errors later on in the build process. What I did was to check out 2.5.2 from CVS instead of using the wxAll archive - it's not working great!