User forums > Using Code::Blocks

Upgrading WxWidgets libraries

(1/1)

egarrulo:
Hello,

I'm trying to compile a project with wxWidgets 2.9.1 instead of 2.8.11 with CodeBlocks 10.05 and Microsoft Visual C++ 2005's command line tools.

So far, I have been successful in changing all search directories, but the linker complains:

LINK||fatal error LNK1181: cannot open input file 'wxmsw28_core.lib'|

My understanding is that such library name is generated by wxWidgets headers and the correct one should be "wxmsw29u_core.lib" (I'm compiling with _UNICODE defined).  Such generated names are correct when compiling under Visual C++ IDE.  I'm not able to make it work under CodeBlocks.  I've copied all Visual C++ IDE's preprocessor #defines, which are these:

WIN32
__WXMSW__
_WINDOWS
_UNICODE

without success.  I've also renamed the directory which contains wxWidgets 2.8.11 to be sure no old header is included by accident.  WXWIN environment variable is correct:

set WXWIN=C:\wxWidgets-2.9.1

Any help?  Thanks.

oBFusCATed:

--- Quote from: egarrulo on November 10, 2010, 11:03:48 am ---My understanding is that such library name is generated by wxWidgets headers.

--- End quote ---
Probably you're wrong.
Look at Project -> Build options -> Linker options

Also read this:
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

egarrulo:
Thank you, that has been very useful: logging showed me I had missed deletion of explicit libraries in Linker section.

Navigation

[0] Message Index

Go to full version