User forums > Help
Getting wxWidgets to work
(1/1)
TonyP:
Hi all, looking for some help getting wxWidgets to work. Frankly, I'm having a horrible time with it. Using GCC compiler and have wxWidgets installed (I think). Clicking compile gives me an error:
C:\wxWidgets\include\wx\platform.h|183|fatal error: wx/setup.h: No such file or directory|
Double clicking on the error in the build messages, takes me to the offending line in "platform.h".
there is indeed no setup.h in wx but I have a setup.h file in msvc/wx/setup.h, should I simply copy this to the wx directory? Or should I edit the platform.h file to refer instead to the msvc/wx directory?
stahta01:
You likely need to build wxWidgets or download an already built wxWidgets.
Tim S.
Grit Clef:
MSVC's setup.h can't be used in GCC compiler.
PB:
The OP just needs to read the official wxWidgets docs to learn how to build and use it.
The setup.h is error is even in the FAQ.
FWIW, I have written a whole guide on how to build wxWidgets with GCC and use in Code::Blocks: https://github.com/PBfordev/wxpbguide
Navigation
[0] Message Index
Go to full version