User forums > Using Code::Blocks
error using wxwidgets 2.6.3 with C::B
wedgy:
There is this one nagging error which does not seem to go away no matter what paths I give to the compiler and linker.
I have C::B 1.0rc2 AND wx 2.6.3.
when I use default wxwidget template from C::B , there is an error :
Switching to target: default
Linking executable: C:\Program Files\CodeBlocks\Projects\wxWidgets_try2.exe
C:\Program Files\CodeBlocks\bin\..\lib\gcc\mingw32\3.4.4\..\..\..\..\mingw32\bin\ld.exe: cannot find -lwxmsw26
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)
1 errors, 0 warnings
where is this wxmsw26 ? I searched all the wx dirs ...no clue...help needed
Pecan:
Delete CB 1.0RC2. Yes, completely delete it and look here:
http://forums.codeblocks.org/index.php?board=20.0
Do *NOT* install the nightly *over* 1.0RC2. Use a fresh directory/folder.
MortenMacFly:
This is a linker error. The linker cannot find the library "wxmsw26". Either you really don't have this or forgot to include the path to this library into you linker directories. I'm not sure, but this: http://forums.codeblocks.org/index.php?topic=3452.msg27200#msg27200 could help...?!
If not, please searcht he forum for "wxmsw26" there are a lot of answers applicable to your question.
Please also have a look here: http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows in case you forgot to compile wxWidgets. This has to be done to get the libraries.
With regards, Morten.
wedgy:
well here's the thing...I recompiled all of wxwidgets 2.6.3 and tried making the sample applications (using make from MSYS) all the ones I tried from the prompt worked absolutely fine. So I don't think any library is missing. Maybe my compiler/linker options in C::B r not well worked out ...any clues as to what I should add or remove there?
In the wx build, i have following lib in /lib directory: libwx_mswd_core-2.6.a ...does it have something to do with wxmsw26?
kauranga:
Hi, I've been having the same problems. But I can get past the problem finding wxmsw26.
On you project | build options under the linker tab, you'll see the problem library listed "wxmsw26" - but this library doesn't exist. It should be in the \wxWidgets-2.6.3\lib directory or something like that.
But when you built wxWidgets you used different options so it created libwx_mswd_core-2.6.a or something.
If I delete wxmsw26 and replace it with libwx_mswd_core-2.6.a then the linker starts to work...
At this point I have another linker error : undeclared reference to wxWindow::RegisterHotKey - I've recompiled wxWindows with all sorts of settings... but can't seem to get my system to include the RegisterHotKey function in the build. I guess I'll have to start over from scratch!
Navigation
[0] Message Index
[#] Next page
Go to full version