Author Topic: mingw32\bin\ld.exe: cannot find -lwxmsw  (Read 7138 times)

Offline Destroyer

  • Single posting newcomer
  • *
  • Posts: 5
mingw32\bin\ld.exe: cannot find -lwxmsw
« on: September 22, 2006, 11:28:35 am »
May be it's a stupid question...  :(
I'm really sorry, but I have been using a 1.0rc2 for some period of time and there was't such problem.
Help pls to stupid Destroyer!

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: mingw32\bin\ld.exe: cannot find -lwxmsw
« Reply #1 on: September 22, 2006, 12:40:33 pm »
Are you expecting a valid answer now?  :shock:
Please, describe your problem better...
Be patient!
This bug will be fixed soon...

Offline Destroyer

  • Single posting newcomer
  • *
  • Posts: 5
Re: mingw32\bin\ld.exe: cannot find -lwxmsw
« Reply #2 on: September 22, 2006, 01:44:17 pm »
So, I installed a last build of CodeBlocks.
Then imported a test project from DevCpp. After some tribal dances project compiles.
-lwxmsw is a linker option (Project->Build options->Linker->Other linker options).
As I understand it's a directive to use a wxmsw library.
Ok, there are no such library in wxWidgets/lib directory.
There is a libwx_msw_core-2.6. library. But for DevCpp it's ok.
Even if I specify all libraries in wxWidgets/lib directory linker output messages like 'undefined reference to bla-bla-bla'
How can I specify wx libraries to CodeBlocks?

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: mingw32\bin\ld.exe: cannot find -lwxmsw
« Reply #3 on: September 22, 2006, 01:52:23 pm »
If the library does not exist, but Dev-Cpp works fine, then Dev-Cpp has one additional library search path where it finds that library.

However, from the error message ("cannot find -lwxmsw"), there is an entirely different problem, too.
If that is the exact error message that you get, you entered -lwxmsw into the link libraries field, which is simply wrong. That will call ld with -l-lwxmsw, which will obviously not work regardless of library paths.
If it was only about library paths, the message would be "cannot find wxmsw".
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline Destroyer

  • Single posting newcomer
  • *
  • Posts: 5
Re: mingw32\bin\ld.exe: cannot find -lwxmsw
« Reply #4 on: September 22, 2006, 02:39:44 pm »
It isn't a solution  :(
In this case it writes "cannot find -l-lwxmsw"  :?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7179
    • My Best Post
Re: mingw32\bin\ld.exe: cannot find -lwxmsw
« Reply #5 on: September 23, 2006, 03:18:08 am »
The library name is wxmsw26u if unicode wxmsw26 if not unicode verify that you do not have an "L" in front of it. This assumes version 2.6 library. least this is what codeblocks uses as it library under windows.

Tim S
« Last Edit: September 23, 2006, 03:19:45 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org