News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Linking wx with Gcc

Started by mercury, June 16, 2005, 06:03:13 PM

Previous topic - Next topic

mercury

Hi!
I'm doing my first project with wx in windows. After I've set all directories for the includes in the compiler options I get an error saying lib wx can't be found ("-lwx cannot be found"). So any ideas how to link?

Best regards to you all,
George

rickg22

Maybe they're not found because you didn't download them ;-)

(No, Code::Blocks does NOT include wx libraries. You have to download them and install them by yourself) Try going to the wxWidgets forums. Good luck! :)

Urxae

If you have downloaded and compiled it, are you sure it's called 'wx'? After I compiled wxWidgets 2.4.2 (withthe provided makefile), the library I needed was 'wxmsw242', not 'wx'.

tiwag

it is intended to replace the -lwx with the appropriate library name, you are using for your/this project.
the lib names depend on the used version of Wxwidgets and the various build flavours (dll, static, ... )