User forums > Help

Build problems with wxW2.8.4

(1/5) > >>

patlecat:
I discussed this over here already, but came to no solution: other thread

I use the newest nightly CB and GCC4.2 under WinXP. Building a wxW program with Dialogblocks works just fine, but when I try to use CB then I get a huge amount of errors. I included a lot of directories in the Compiler Settings, but nothing seems to help.


--- Code: ---mingw32-gcc-4.2.0.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -O2
-march=athlon-xp -O3 -W -pg -g UNICODE=1 -IH:\wxWidgets-2.8.4\include -IH:\wxWidgets-2.8.4\contrib\include
-IH:\wxWidgets-2.8.4\lib\gcc_lib\msw -Ih:\MinGW\include -IH:\wxWidgets-2.8.4\include -IH:\wxWidgets-2.8.4\include\wx\msw
-IH:\wxWidgets-2.8.4\contrib\include -IH:\wxWidgets-2.8.4\lib\gcc_lib\mswu -IH:\wxWidgets-2.8.4\lib\gcc_lib\mswud
-IH:\wxWidgets-2.8.4\include\wx -IH:\wxWidgets-2.8.4\lib\gcc_lib\mswu\wx -IH:\wxWidgets-2.8.4\lib\gcc_lib\mswud\wx -c
H:\myProjects2\wixTest\wx_pch.h -o wx_pch.h.gch\Release_wx_pch_h_gch

In file included from H:/wxWidgets-2.8.4/include/wx/wxprec.h:46,
from ./wx_pch.h:14,
from :0:
H:/wxWidgets-2.8.4/include/wx/msw/wrapcctl.h: In function 'wxSetCCUnicodeFormat':
H:/wxWidgets-2.8.4/include/wx/msw/wrapcctl.h:48: error: expected expression before ':' token
H:/wxWidgets-2.8.4/include/wx/msw/wrapcctl.h:45: warning: unused parameter 'hwnd'
H:/wxWidgets-2.8.4/include/wx/msw/wrapcctl.h: At top level:
H:/wxWidgets-2.8.4/include/wx/msw/wrapcctl.h:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wxFont'
H:/wxWidgets-2.8.4/include/wx/msw/wrapcctl.h:59: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'wxGetCCDefaultFont'
...
and so on...
--- End code ---

Anyone have a good idea?

Biplab:

--- Quote from: patlecat on May 20, 2007, 01:20:12 pm ---mingw32-gcc-4.2.0.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -O2 -march=athlon-xp -O3 -W -pg -g UNICODE=1 -IH:\wxWidgets-2.8.4\include -IH:\wxWidgets-2.8.4\contrib\include
-IH:\wxWidgets-2.8.4\lib\gcc_lib\msw -Ih:\MinGW\include -IH:\wxWidgets-2.8.4\include -IH:\wxWidgets-2.8.4\include\wx\msw
-IH:\wxWidgets-2.8.4\contrib\include -IH:\wxWidgets-2.8.4\lib\gcc_lib\mswu -IH:\wxWidgets-2.8.4\lib\gcc_lib\mswud
-IH:\wxWidgets-2.8.4\include\wx -IH:\wxWidgets-2.8.4\lib\gcc_lib\mswu\wx -IH:\wxWidgets-2.8.4\lib\gcc_lib\mswud\wx -c
H:\myProjects2\wixTest\wx_pch.h -o wx_pch.h.gch\Release_wx_pch_h_gch

--- End quote ---

The above code should be:

--- Quote ---mingw32-gcc-4.2.0.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -O2 -march=athlon-xp -O3 -W -pg -g -D_UNICODE -IH:\wxWidgets-2.8.4\include -IH:\wxWidgets-2.8.4\contrib\include
-IH:\wxWidgets-2.8.4\lib\gcc_lib\msw -Ih:\MinGW\include -IH:\wxWidgets-2.8.4\include -IH:\wxWidgets-2.8.4\include\wx\msw
-IH:\wxWidgets-2.8.4\contrib\include -IH:\wxWidgets-2.8.4\lib\gcc_lib\mswu -IH:\wxWidgets-2.8.4\lib\gcc_lib\mswud
-IH:\wxWidgets-2.8.4\include\wx -IH:\wxWidgets-2.8.4\lib\gcc_lib\mswu\wx -IH:\wxWidgets-2.8.4\lib\gcc_lib\mswud\wx -c
H:\myProjects2\wixTest\wx_pch.h -o wx_pch.h.gch\Release_wx_pch_h_gch
--- End quote ---

patlecat:
Ok thanks, I added this just before posting the new thread. But the errors remain the same.

stahta01:
Did you compile the debug version of wxWidgets?
The code you posted above is trying to use the debug version of wxWidgets.

The folder name "mswud" means wxMSW Unicode Debug

Tim S

stahta01:
My suggested settings are as follows:
Settings - Global Variables (variable: wx) :
base:      H:\wxWidgets-2.8.4
include:
lib:

The include and lib defaults to
H:\wxWidgets-2.8.4\include
and
H:\wxWidgets-2.8.4\lib
with no value specified.

plus in the project "Build Options" Settings:
Search directories:
++ Compiler
$(#WX.include)
$(#WX.lib)\gcc_dll\mswu
$(#WX)\contrib\include

++ Linker
$(#WX.lib)\gcc_dll

++ Resource compiler
$(#WX.include)


Note replace "$(#WX.lib)\gcc_dll\mswu" with "$(#WX.lib)\gcc_dll\mswud" if doing debug.

Note, I just saw your setting where in the compiler section they need removed.
Repeating, wxWidgets setting should not be under compiler setting. They should be under Project -> "Build options" Settings.

Tim S

Navigation

[0] Message Index

[#] Next page

Go to full version