Static Build Usage in Code::Blocks

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
FlyingIsFun1217
Super wx Problem Solver
Super wx Problem Solver
Posts: 497
Joined: Mon Nov 06, 2006 9:58 pm

Static Build Usage in Code::Blocks

Post by FlyingIsFun1217 » Fri Oct 02, 2009 12:27 am

I've normally had no problem getting Code::Blocks working with my wxWidgets builds, having done them with gcc and msys. But I'm getting some interesting errors trying to compile a sample application after setting up my include and lib directories for the project.
||=== wxWidgets, Release ===|
C:\wxWidgets\lib\libwx_base-2.8.a(baselib_filename.o):filename.cpp:(.text+0x1d35)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_base-2.8.a(baselib_filename.o):filename.cpp:(.text+0x1d57)||undefined reference to `IID_IPersistFile'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_font.o):font.cpp:(.text+0x133)||undefined reference to `wxSystemOptions::GetOptionInt(wxString const&)'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_font.o):font.cpp:(.text+0x70a)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_font.o):font.cpp:(.text+0xa0c)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_font.o):font.cpp:(.text+0xab8)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_font.o):font.cpp:(.text+0xbd8)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_toplevel.o):toplevel.cpp:(.text+0x1bab)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_toplevel.o):toplevel.cpp:(.text+0x1bd2)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_toplevel.o):toplevel.cpp:(.text+0x1be9)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_toplevel.o):toplevel.cpp:(.text+0x1c8a)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_fontdlg.o):fontdlg.cpp:(.text+0x3a2)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_colordlg.o):colordlg.cpp:(.text+0xd31)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x1a7b)||undefined reference to `wxSystemOptions::GetOptionInt(wxString const&)'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x2c2a)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x2c49)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x2c65)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x2df3)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x2e29)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x2e41)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x2eaa)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x2fa6)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x58b6)||undefined reference to `vtable for wxPowerEvent'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x59b5)||undefined reference to `wxEVT_POWER_SUSPENDING'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x59bf)||undefined reference to `wxEVT_POWER_SUSPEND_CANCEL'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x59c9)||undefined reference to `wxEVT_POWER_SUSPENDED'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x59d3)||undefined reference to `wxEVT_POWER_RESUME'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x6465)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x6493)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x64cd)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x64f5)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x6864)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x6892)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x68cf)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x68f7)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x6ffa)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x95a4)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x95b8)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x9618)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0xbb42)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_window.o):window.cpp:(.text+0x207c)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_control.o):control.cpp:(.text+0x1522)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_control.o):control.cpp:(.text+0x16ea)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_control.o):control.cpp:(.text+0x1761)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_msw_control.o):control.cpp:(.text+0x182b)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_ole_dataobj.o):dataobj.cpp:(.text+0xb50)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_ole_dataobj.o):dataobj.cpp:(.text+0x171a)||undefined reference to `[email protected]'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_ole_dataobj.o):dataobj.cpp:(.data+0x0)||undefined reference to `IID_IUnknown'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_ole_dataobj.o):dataobj.cpp:(.data+0x4)||undefined reference to `IID_IDataObject'|
C:\wxWidgets\lib\libwx_msw_core-2.8.a(corelib_ole_dataobj.o):dataobj.cpp:(.data+0x8)||undefined reference to `IID_IUnknown'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|
Any ideas?
FlyingIsFun1217

Post Reply