User forums > Help

mingw32\bin\ld.exe: cannot find -lwxmsw

(1/2) > >>

Destroyer:
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!

mandrav:
Are you expecting a valid answer now?  :shock:
Please, describe your problem better...

Destroyer:
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?

thomas:
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".

Destroyer:
It isn't a solution  :(
In this case it writes "cannot find -l-lwxmsw"  :?

Navigation

[0] Message Index

[#] Next page

Go to full version