Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code Blocks - wx/setup: no such file or directory

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: enter image description here And then I continue clicking yes.

like image 858
itsols Avatar asked Aug 24 '12 07:08

itsols


1 Answers

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.

like image 187
MPanther Avatar answered Sep 22 '22 06:09

MPanther