Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / 2.5.2 + MinGW = will not build?

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. 2.5.2 + MinGW = will not build?
#4982
Posted by: BryGuy 2004-08-13 03:58:05
All,

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).

TIA!

Bryan Ashby
Message2. Re: 2.5.2 + MinGW = will not build?
#4989
Posted by: BryGuy 2004-08-16 07:38:56
FYI, for anyone having similar problems:

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!

Bryan
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Thu 2022-8-18  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0