Author Topic: Issues using wxWidgits.  (Read 4945 times)

Offline Owain

  • Single posting newcomer
  • *
  • Posts: 3
Issues using wxWidgits.
« on: April 12, 2012, 07:55:42 pm »
Hello, I recently download wxWidgits 2.8.10 and just finished building it with MinGW. I attempted to create a wxWidgits application and when I was asked for the location of wxWidgits, I created a global variable named '$(#wx)' and under the base member I typed 'C:\wxWidgets-2.8.10' which is where it is located. However, I got the error 'Please select a valid location...'. So I attempted to use the path insted of the global variable, and it let me continue up until the last section where it gave me two warnings, one saying 'A matching Debug configuration could not be found in the mxWidgits directory you specified...' and the other is the same but mentionaing 'Release' insted of 'Debug'. The project is still created, but when trying to build it I am presented with the error 'cannot find -lwxmsw28u'. I do not understand why this is happening, I followed the instructions in http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef but I still cant get my project to build. Does anybody know what I am doing wrong?

Thankyou.

Offline Freem

  • Almost regular
  • **
  • Posts: 218
Re: Issues using wxWidgits.
« Reply #1 on: April 13, 2012, 05:17:46 pm »
It seem that the problem is about your linker settings.
Go in your project and add the lib directory of wxWidgets to the linker search directories list.

I know that I had similar kind of problems with the wizard, so now I just use an empty project and configure it by myself when I use windows (and on linux, the wizard uses a different way to fill the paths) so I do not know what you miss in the tutorial.