Author Topic: Upgrading WxWidgets libraries  (Read 3962 times)

Offline egarrulo

  • Single posting newcomer
  • *
  • Posts: 2
Upgrading WxWidgets libraries
« 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Upgrading WxWidgets libraries
« Reply #1 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
(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!]

Offline egarrulo

  • Single posting newcomer
  • *
  • Posts: 2
Re: Upgrading WxWidgets libraries
« Reply #2 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.