News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Upgrading WxWidgets libraries

Started by egarrulo, November 10, 2010, 11:03:48 AM

Previous topic - Next topic

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.
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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

egarrulo

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