I'm trying to write my first cpp program on Windows+Code Blocks.
I've installed wxwidgets.
I have a label and a button.
When I hit F9, I get the error: error: wx/setup.h: No such file or directory.
The error is highlighted on the file platform.h at line 196 which contains #include "wx/setup.h"
I did a search for the file on my hdd. It is in c:\wxWidgets-2.8.12\wx\msw and some other locations as well.
When I change the line 196 to wx/msw/setup.h this error is gone but there are other errors.
I think I'm missing on something really elementary but also vital. Any thoughts please... Thanks!
EDIT: I don't know if this matters but when I start a new wxwidgets project I get the following screen: And then I continue clicking yes.
It is now 2016 and most of the above are 2012 so probably earlier versions of Code::Blocks or Widgets, but I found it was whenever I didn't have 'enable unicode' selected it gave the no Setup.h file error. With 'enable unicode' selected there is no problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With