Reputation: 49
I am unable to compile wxWidgets with gcc in Code::Blocks. I did everything according to the documentation on the wxWidgets site:
Everthing went well until I wrote a program in Code::Blocks and clicked the compile button. About 30 - 40 errors are displayed, including:
wx/wx.h not found
and dozens of undeclared error
I compiled the hello world program from the official site. I think there's a problem in the make file or the library. Any solution?
Upvotes: 1
Views: 1204
Reputation: 2350
You need to add wxWidgets you downloaded and built to your compiler include path.
For example my wxWidgets is located at: C:\wxWidgets-2.8.12\
In build options for your project, go to the Search directories-tab and in the Compiler-subtab you can add your search path for the include directory in your wxWidgets location, in my example that would be: C:\wxWidgets-2.8.12\include
Upvotes: 1