Code::Blocks Forums

User forums => Help => Topic started by: Destroyer on September 22, 2006, 11:28:35 am

Title: mingw32\bin\ld.exe: cannot find -lwxmsw
Post by: Destroyer 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!
Title: Re: mingw32\bin\ld.exe: cannot find -lwxmsw
Post by: mandrav on September 22, 2006, 12:40:33 pm
Are you expecting a valid answer now?  :shock:
Please, describe your problem better...
Title: Re: mingw32\bin\ld.exe: cannot find -lwxmsw
Post by: Destroyer 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?
Title: Re: mingw32\bin\ld.exe: cannot find -lwxmsw
Post by: thomas 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".
Title: Re: mingw32\bin\ld.exe: cannot find -lwxmsw
Post by: Destroyer on September 22, 2006, 02:39:44 pm
It isn't a solution  :(
In this case it writes "cannot find -l-lwxmsw"  :?
Title: Re: mingw32\bin\ld.exe: cannot find -lwxmsw
Post by: stahta01 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