Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Absolutely deathly wxWidgets Pain

I've never used wxWidgets before, and I'd love to try it out, but I've run into a million problems getting started.

I am using wxWidgets 2.9.1 on Visual Studio 2010. I've gone through the batch build to build every project in every configuration.

I've added the includes and lib references to my project.

When I try to compile the simple "Hello, World!" program, I get this error:

Error   1   error C1083: Cannot open include file: '../../../lib/vc_lib/msw/wx/setup.h': No such file or directory

I checked my lib/vc_lib folder, and indeed, there was no "msw" folder to be found. There were only "mswu", "mswud", "mswunivu" and "mswunivd".

Anyone know what's going on? :/

like image 561
Avindra Goolcharan Avatar asked Dec 01 '10 07:12

Avindra Goolcharan


3 Answers

First off, you might reconsider WX. I used it, invested a lot of time and code into products based on it, and it just turned out to be not so hot.

The problem you're having is probably due to not having the unicode flags turned on but only having the unicode version. Apparently anyway. So go into your properties and change the character set to unicode. It's on the general properties page.

like image 118
Edward Strange Avatar answered Sep 18 '22 10:09

Edward Strange


You have to create that file yourself from a setupin.h (or similar, can't remember) template file. See http://wiki.wxwidgets.org/Setup.H.

But I agree with Noah's reply above: I have written a large commercial wx application over the last five years and I'd never choose wx again. There are just too many bugs, too many feature omissions, a slow patching process and too much cruft in the code. Now that Qt has an acceptable license I'd seriously consider that as an alternative...

like image 24
BuschnicK Avatar answered Sep 21 '22 10:09

BuschnicK


Read the first comment, it gives a better answer.

like image 44
user3658739 Avatar answered Sep 22 '22 10:09

user3658739