User forums > Help

Trouble compiling/linkng wx library

<< < (2/2)

Charlie:
The entries were in "Link libraries" but not in "Other linker options". I removed them anyway and the result is as above. If I compile for release only I get "mingw32/bin/ld.exe: cannot find -lwxmsw31u". So I don't appear to have either of them. Question: Why is it looking for ....31u instead of ....32u since it is wxWidgets-3.2.1 that I am using?

gd_on:
inside your C:\wxWidgets-3.2.1\lib\gcc_dll folder you should have a dll with a name containing 32 and not 31. -lwxmsw31ud indicates a wxwidgets 3.1 debugging version which is probably not your case. If in this folder you have, as I suppose, but I'm not on your PC, a libwxmsw32u.a and a corresponding dll like wxmsw32u_gcc_custom.dll (the name may vary) you should use -lwxmsw32u which indicates a non debug version for wxwidgets 3.2 serie.

Charlie:
Actually, all the lib files in that directory are 32s. There is no libwxmsw32u.a or libwxmsw32ud.a but plenty of others for ribbon, aui, xrc, webview, html, core ...etc. So should I download the non-debug version?

stahta01:

--- Quote from: Charlie on May 01, 2023, 04:15:44 pm ---Actually, all the lib files in that directory are 32s. There is no libwxmsw32u.a or libwxmsw32ud.a but plenty of others for ribbon, aui, xrc, webview, html, core ...etc. So should I download the non-debug version?

--- End quote ---

The libwxmsw32u.a or libwxmsw32ud.a are monolithic build the others you mention are from multilib build (opposite of  monolithic).

Edit: The primary reason to use monolithic build is building Code::Blocks IDE (CB) or CB Plugins. Otherwise you likely wish to use multilib build of wxWidgets.

Tim S.

Navigation

[0] Message Index

[*] Previous page

Go to full version