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.
Which GUI builder you have selected while creating project. I think this error occurs due to incorrect selection of GUI builder. For your project select
wxformBuilder
in prefered GUI Builder option and select
frame based
in application type option. You can follow this link here which explain to setup every step by step.