Author Topic: cannot find -lwxmsw  (Read 2938 times)

sbrown

  • Guest
cannot find -lwxmsw
« on: August 13, 2007, 04:27:33 pm »
When I try to compile a wxWidgets program using codeblocks I get this linker error:
Quote
ld.exe  cannot find -lwxmsw
I am using wxWidgets-2.8.4, so I tried setting the project linker options to wxmsw28 instead, but that didn't
work.

I compiled wxWidgets using the command :
Quote
mingw32-make.exe -f makefile.gcc clean USE_XRC=1 SHARED=0 MONOLITHIC=1 BUILD=release UNICODE=0

Also, in the Project build options custom variables I have changed the default WX_DIR path to the actual path:
Quote
WX_DIR= C:\wxWidgets-2.8.4

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: cannot find -lwxmsw
« Reply #1 on: August 13, 2007, 05:04:37 pm »
Hi !

You have to set wxWidgets directories in Search directories/linker in the project settings.

Dje

sbrown

  • Guest
Re: cannot find -lwxmsw
« Reply #2 on: August 14, 2007, 06:14:03 am »
I added
Quote
$(WX_DIR)\lib\gcc_lib$(WX_CFG)
to Build options->Directories->Linker and it's working now, thank you.