User forums > General (but related to Code::Blocks)

[solved] codeblocks 13.12 & wxWidgets 3.0 config, ld.exe cannot find -lwxmsw30u?

<< < (5/7) > >>

Raf20076:

--- Quote from: Aaron on March 07, 2015, 05:47:25 pm ---UPDATE

I determined that the file libwxmsw30u.a was missing from the C:\wxWidgets-3.0.2\lib\gcc_dll directory, so I copied and pasted it from another pc with wxWidgets & CodeBlocks which operates and builds as properly.


--- End quote ---
>:( Are you kidding me?


Sollution for cannot find -lwxmsw30ud (or lwxmsw31ud, lwxmsw32ud, lwxmsw33ud for the future)

OK! I assume that your wxWidgets 3.1.0 project is opened now in codeblocks
and before you compiled wxWidgets 3.1.0 on your computer

In menu click ->  Project -> Build options....
In Project build options window select
-> Debug (Select compiler -> GNU GCC Compiler)
In Linker settings -> (in Policy select -> Prepend target options to project options)
In Link Librarias select lwxmsw30ud and click Edit button, then change name for lwxmsw31ud click OK then again
In Link Librarias click button Add and type libshlwapi.a click OK then again
In Link Librarias click button Add and type libversion.a click OK then again

In Other link options paste

-lshlwapi
-lversion

In Project build options window select
-> Release (Select compiler -> GNU GCC Compiler)
Select Linker settings and in Link Librarias select lwxmsw30u and click Edit button, then change name for lwxmsw31u click OK

then click OK closing window

In Menu click -> Settings -> Global variables
In Global variable editor window select
In base select folder where your wxWidget is installed usually C:\wxWidgets
In include select folder inlude in your wxWidget folder, usually C:\wxWidgets\include
In lib select folder lib in your wxWidget folder usually C:\wxWidgets\lib

and that's it ;D you don't have to dig a hole using a spoon. I hope i helped





alfredfvj:
Hello,

I am just starting to learn using Code::Blocks with wxWidgets 3.2.

My original error upon building was ld.exe cannot find -lwxmsw32u. I followed all your instructions and it seemed to work in solving that original error.  However, I am now getting the error:

ld.exe cannot find -llwxmsw32ud (it added an extra "l" as a prefix.

I am really just starting with codeblocks and wxWidgets so please excuse me if this error is just due to my ignorance. I tried searching Google for answers but I wasn't able to find any solution. Any help will be appreciated.

Miguel Gimenez:
The leading 'l' must be removed, just write libwxmsw32ud.a (or libwxmsw32u.a if you do not intend to debug wxWidgets itself).
Remember to put the path to the library in Search directories -> Linker

alfredfvj:
Hi Miguel, Thanks for your reply. 

How will I remove the extra "l" from ld.exe?

Please note that my Link libraries list does not have that extra "l". The entries there are as follows:

lwxmsm32ud
libshlwapi.a
libversion.a

I tried searching my project for "llwxmsm32ud" so that I can remove the extra "l" but it was not found.

This is the error message:

||=== Build: Debug in ClicsCP (compiler: tdm64Compile) ===|
ld.exe||cannot find -llwxmsw32ud|
||error: ld returned 1 exit status|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|




Miguel Gimenez:

--- Quote ---Please note that my Link libraries list does not have that extra "l". The entries there are as follows
--- End quote ---

--- Code: ---lwxmsm32ud
libshlwapi.a
libversion.a
--- End code ---

Really? I see an extra 'l' as the very first character of your quote.

OTOH, are you sure you want to link with the debug version of wxWidgets?

EDIT: If this is a copy/paste of your setup, please note the "msm" instead of "msw"

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version