Hello,
Purpose: to build and run a simple wxWidgets-based "HelloWorld"-Application from (
http://www.wxwidgets.org/docs/tutorials/hello.htm).
(1) downloaded Code::Blocks (v8.02) with MinGW compiler (v3.4.5) as binaries; installed it.
(2) Created a new WxWidgets-Project under Code::Blocks.
(3) downloaded wxWidgets v2.8.7; build libraries as described by the "Nightly_Cookbook" (
http://wiki.codeblocks.org/index.php?title=Nightly_Cookbook#wxWidgets)
mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 clean
mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1
(4) Added all (*.a) built libraries from C:\wxWidgets-2_8_7\lib\gcc_dll to the C::B->Project->BuildOptions->LinkerSettings->Link Libraries.
Added wxmsw28u_gcc_custom.dll file to the Project (don't know whether I really need it or not).
(5) When I try to build my project the build ist stopped with following message:
...
This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.C:\wxWidgets-2_8_7\TE_Projects\TestWidgetsApp_HelloWorld\Release\obj\TestWidgetsApp_HelloWorldMain.o: In function `_ZN30TestWidgetsApp_HelloWorldFrameC2ERK8wxStringRK7wxPointRK6wxSize':
C:/wxWidgets-2_8_7/include/wx/string.h:368: undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
C:/wxWidgets-2_8_7/include/wx/string.h:368: undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
C:/wxWidgets-2_8_7/include/wx/string.h:368: undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
C:/wxWidgets-2_8_7/include/wx/string.h:368: undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
C:/wxWidgets-2_8_7/include/wx/string.h:368: undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
C:\wxWidgets-2_8_7\TE_Projects\TestWidgetsApp_HelloWorld\Release\obj\TestWidgetsApp_HelloWorldMain.o:C:/wxWidgets-2_8_7/include/wx/string.h:368: more undefined references to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)' followC:\wxWidgets-2_8_7\TE_Projects\TestWidgetsApp_HelloWorld\Release\obj\TestWidgetsApp_HelloWorldApp.o: In function `_ZN20wxThreadHelperThreadD1Ev':
C:/wxWidgets-2_8_7/include/wx/string.h:(.rdata$_ZTV28TestWidgetsApp_HelloWorldApp[vtable for TestWidgetsApp_HelloWorldApp]+0x44): undefined reference to `wxApp::Initialize(int&, char**)'collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 8 seconds)
7 errors, 1 warnings
Any idea about
undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'?
regards