Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: egarrulo on November 10, 2010, 11:03:48 am

Title: Upgrading WxWidgets libraries
Post by: egarrulo on November 10, 2010, 11:03:48 am
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.
Title: Re: Upgrading WxWidgets libraries
Post by: oBFusCATed on November 10, 2010, 11:09:39 am
My understanding is that such library name is generated by wxWidgets headers.
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
Title: Re: Upgrading WxWidgets libraries
Post by: egarrulo on November 10, 2010, 11:30:56 am
Thank you, that has been very useful: logging showed me I had missed deletion of explicit libraries in Linker section.