User forums > Using Code::Blocks
c::b , wxWidgets 2.8.10 monolitic - mswu problem
mythcat:
I try default example from code::blocks 10.05 with wxWidgets 2.8.10 .
I install wxWidgets 2.8.10 under C:\ .
I set var wx with gui template .
But i try to build i got this error :
--- Code: ----------------- Clean: Debug in wx2810-test01 ---------------
Cleaned "wx2810-test01 - Debug"
-------------- Build: Debug in wx2810-test01 ---------------
Compiling: resource.rc
Compiling: wx2810_test01App.cpp
In file included from C:\wxWidgets-2.8.10\include/wx/defs.h:21,
from C:\wxWidgets-2.8.10\include/wx/event.h:15,
from C:\wxWidgets-2.8.10\include/wx/app.h:20,
from D:\cata\wx2810-test01\wx2810_test01App.h:13,
from D:\cata\wx2810-test01\wx2810_test01App.cpp:18:
C:\wxWidgets-2.8.10\include/wx/platform.h:196:22: error: wx/setup.h: No such file or directory
In file included from C:\wxWidgets-2.8.10\include/wx/platform.h:293,
from C:\wxWidgets-2.8.10\include/wx/defs.h:21,
from C:\wxWidgets-2.8.10\include/wx/event.h:15,
from C:\wxWidgets-2.8.10\include/wx/app.h:20,
from D:\cata\wx2810-test01\wx2810_test01App.h:13,
from D:\cata\wx2810-test01\wx2810_test01App.cpp:18:
C:\wxWidgets-2.8.10\include/wx/chkconf.h:103:9: error: #error "wxUSE_DYNLIB_CLASS must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:111:9: error: #error "wxUSE_EXCEPTIONS must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:119:9: error: #error "wxUSE_FILESYSTEM must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:127:9: error: #error "wxUSE_FS_ARCHIVE must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:140:9: error: #error "wxUSE_DYNAMIC_LOADER must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:148:9: error: #error "wxUSE_LOG must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:156:9: error: #error "wxUSE_LONGLONG must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:164:9: error: #error "wxUSE_MIMETYPE must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:180:9: error: #error "wxUSE_PRINTF_POS_PARAMS must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:188:9: error: #error "wxUSE_PROTOCOL must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:230:9: error: #error "wxUSE_REGEX must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:238:9: error: #error "wxUSE_STDPATHS must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:246:9: error: #error "wxUSE_XML must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:254:9: error: #error "wxUSE_SOCKETS must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:262:9: error: #error "wxUSE_STREAMS must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:270:9: error: #error "wxUSE_STOPWATCH must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:278:9: error: #error "wxUSE_TEXTBUFFER must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:286:9: error: #error "wxUSE_TEXTFILE must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:302:9: error: #error "wxUSE_URL must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:310:9: error: #error "wxUSE_VARIANT must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:330:9: error: #error "wxUSE_ABOUTDLG must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:338:9: error: #error "wxUSE_ACCEL must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:346:9: error: #error "wxUSE_ANIMATIONCTRL must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:354:9: error: #error "wxUSE_BITMAPCOMBOBOX must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:362:9: error: #error "wxUSE_BMPBUTTON must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:370:9: error: #error "wxUSE_BUTTON must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:378:9: error: #error "wxUSE_CALENDARCTRL must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:386:9: error: #error "wxUSE_CARET must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:394:9: error: #error "wxUSE_CHECKBOX must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:410:9: error: #error "wxUSE_CHOICE must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:418:9: error: #error "wxUSE_CHOICEBOOK must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:426:9: error: #error "wxUSE_CHOICEDLG must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:434:9: error: #error "wxUSE_CLIPBOARD must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:442:9: error: #error "wxUSE_COLLPANE must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:450:9: error: #error "wxUSE_COLOURDLG must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:458:9: error: #error "wxUSE_COLOURPICKERCTRL must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:466:9: error: #error "wxUSE_COMBOBOX must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:474:9: error: #error "wxUSE_COMBOCTRL must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:482:9: error: #error "wxUSE_DATAOBJ must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:490:9: error: #error "wxUSE_DATAVIEWCTRL must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:498:9: error: #error "wxUSE_DATEPICKCTRL must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:506:9: error: #error "wxUSE_DIRPICKERCTRL must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:514:9: error: #error "wxUSE_DISPLAY must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:522:9: error: #error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:530:9: error: #error "wxUSE_FILEDLG must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:538:9: error: #error "wxUSE_FILEPICKERCTRL must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:546:9: error: #error "wxUSE_FONTDLG must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:554:9: error: #error "wxUSE_FONTMAP must be defined."
C:\wxWidgets-2.8.10\include/wx/chkconf.h:562:9: error: #error "wxUSE_FONTPICKERCTRL must be defined."
--- End code ---
I read this page http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef , but nothing clear to me .
It say :
--- Quote ---I get errors like "wx/setup.h: No such file or directory"
You're missing an important compiler search path in your build options. Make sure you choose the correct wxWidgets build configuration when running the wxWidgets project wizard. If re-running the wizard isn't an option, then open your project's build options and add "$(#wx.lib)\gcc_dll\mswu" (assuming a monolithic Unicode DLL build) to the compiler search paths.
--- End quote ---
But this folder is not on my folder install .
Jenna:
Did you build wxWidgets, if not, do it as described on the wiki-page.
mythcat:
--- Quote from: jens on December 28, 2010, 02:49:39 pm ---Did you build wxWidgets, if not, do it as described on the wiki-page.
--- End quote ---
Yes . I build that and i make more steps .
Like set
--- Code: ----Wl,--enable-auto-import
--- End code ---
under Linker .
But i got another error :
--- Code: ----------------- Clean: Debug in wx2810-test01 ---------------
Cleaned "wx2810-test01 - Debug"
-------------- Build: Debug in wx2810-test01 ---------------
Compiling: resource.rc
Compiling: wx2810_test01App.cpp
Compiling: wx2810_test01Main.cpp
Compiling: GUIDialog.cpp
Linking executable: bin\Debug\wx2810-test01.exe
obj\Debug\wx2810_test01App.o:wx2810_test01App.cpp:(.rdata$_ZTV16wx2810_test01App[vtable for wx2810_test01App]+0x44): undefined reference to `wxApp::Initialize(int&, char**)'
obj\Debug\wx2810_test01App.o:wx2810_test01App.cpp:(.rdata$_ZTV16wx2810_test01App[vtable for wx2810_test01App]+0x90): undefined reference to `wxAppConsole::OnAssertFailure(char const*, int, char const*, char const*, char const*)'
obj\Debug\wx2810_test01App.o:wx2810_test01App.cpp:(.rdata$_ZTV16wx2810_test01App[vtable for wx2810_test01App]+0x94): undefined reference to `wxAppConsole::OnAssert(char const*, int, char const*, char const*)'
obj\Debug\wx2810_test01Main.o:C:/wxWidgets-2.8.10/include/wx/string.h:287: undefined reference to `wxStringBase::ConcatSelf(unsigned int, char const*, unsigned int)'
obj\Debug\wx2810_test01Main.o: In function `wxStringBase':
C:/wxWidgets-2.8.10/include/wx/string.h:352: undefined reference to `wxOnAssert(char const*, int, char const*, char const*, char const*)'
C:/wxWidgets-2.8.10/include/wx/string.h:368: undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 30 seconds)
6 errors, 0 warnings
--- End code ---
If you say set wx global env . I try this setings when i use wizard.
This is my set .
What is wrong ?
oBFusCATed:
It seems that your wxWidgets is build in unicode mode, but your application is build in ansi mode.
MortenMacFly:
--- Quote from: mythcat on December 29, 2010, 03:29:31 pm ---Yes . I build that and i make more steps .
[...]
What is wrong ?
--- End quote ---
Enable full compiler logging (see my signature) and re-post the compiler log.
Navigation
[0] Message Index
[#] Next page
Go to full version