User forums > Using Code::Blocks
error using wxwidgets 2.6.3 with C::B
kauranga:
Oh my latest recompile worked!
When I first tried to get wxWindows installed, I read something which said to copy setup.h from include/wx/msw to include/wx ... but at some stage I changed wxUSE_HOTKEY in one file but not the other... and I think Code::Blocks and wxWidgets were looking at different versions! Now the two files are the same it works.
wedgy:
Arrgh!.... :x....finally I got the linker to recognize the file but now this:
--- Code: ---Project : wxWidgets application
Compiler : GNU GCC Compiler (called directly)
Directory : C:\Program Files\CodeBlocks\projects\try2\
--------------------------------------------------------------------------------
Switching to target: default
Linking executable: C:\Program Files\CodeBlocks\projects\try2\wxWidgets.exe
.objs\main.o:main.cpp:(.text$_ZN12wxStringBaseC2EPKc[wxStringBase::wxStringBase(char const*)]+0x27): undefined reference to `_imp___ZN12wxStringBase8InitWithEPKcjj'
.objs\main.o:main.cpp:(.text$_Z16wxGetTranslationPKc[wxGetTranslation(char const*)]+0x2c): undefined reference to `_imp___ZNK8wxLocale9GetStringEPKcS1_'
.objs\main.o:main.cpp:(.rdata$_ZTV5MyApp[vtable for MyApp]+0x68): undefined reference to `wxApp::Initialize(int&, char**)'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 4 seconds)
0 errors, 0 warnings
--- End code ---
where's the prob now?
kidmosey:
--- Quote from: wedgy on August 01, 2006, 10:37:44 am ---where's the prob now?
--- End quote ---
I haven't used wxWidgets 2.6.3 for C::B, yet, but I think the same rules apply. Compile wx as a shared, monolithic library. If you have a *core library, I don't think it is monolithic and you will need to include all of the other relevant libs, as well.
In addition, keep in mind that 2.6.3 uses a new naming scheme for it's libs, so you will have to edit the default C::B settings for the wxWizard. This was all a big headache for me, so I just used 2.6.2 until I can integrate 2.6.3 later.
thomas:
--- Quote from: wedgy on August 01, 2006, 10:37:44 am ---where's the prob now?
--- End quote ---
In wxUSE_UNICODE.
Angel Portal:
I am studying the wxWidgets installation, and it says DO NOT USE MSYS!!!
You should take a close look on it.
Angel Portal
[attachment deleted by admin]
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version