Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Aaron on March 13, 2015, 12:17:41 am

Title: wx/wx.h: No such file or directory, with wxWidgets. Numerous other wx/files
Post by: Aaron on March 13, 2015, 12:17:41 am
I'm just getting familiar with Code Blocks (with wxWidgets), and trying to learn best practices for creating simple projects, and testing examples.

I'm not finding another discussion of this issues that provides enough specifics for me to correct this.
But I believe that I must/can specify directories to look in for headers and libs and things, other than Global Variables.

I have a few much larger projects that build perfect.
Code
C:\Cpp Projects\CodeBlocks\wxWidgets_projs\FormLogin\FormLogin.h:13:36: wx/wx.h: No such file or directory

Build log attached if needed.
Could this be caused by a wrong selection in the New Project Wizard?
Maybe the preprocessor can't find the file? 

Advice appreciated.
Title: Re: wx/wx.h: No such file or directory, with wxWidgets. Numerous other wx/files
Post by: stahta01 on March 13, 2015, 01:30:42 pm
What is the real path to "wx/wx.h"?
What is the path you told Code::Blocks to use?

Tim S.

Title: Re: wx/wx.h: No such file or directory, with wxWidgets. Numerous other wx/files
Post by: Aaron on March 14, 2015, 11:22:07 pm
The actual path for wx.h is: C:\wxWidgets-3.0.2\include\wx\wx.h

The path I have set in global variables is:
(http://www.buy-fla.com/GL_Vars.PNG)
Title: Re: wx/wx.h: No such file or directory, with wxWidgets. Numerous other wx/files
Post by: stahta01 on March 15, 2015, 01:28:31 am
The actual path for wx.h is: C:\wxWidgets-3.0.2\include\wx\wx.h

Why did you NOT read your own build log!!!!!


Code
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -Wall -g -D__WXDEBUG__ -IC:\wxWidgets\include -IC:\wxWidgets\lib\gcc_lib\mswd -c "C:\ wxWidgets_projs\FormLogin\FormLogin.cpp" -o obj\Debug\FormLogin.o
In file included from C:\wxWidgets_projs\FormLogin\FormLogin.cpp:10:
C:\wxWidgets_projs\FormLogin\FormLogin.h:13:36: wx/wx.h: No such file or directory
In file included from C:\wxWidgets_projs\FormLogin\FormLogin.cpp:10:


Do you know that "-IC:\wxWidgets\include" does NOT contain the path you said it is at?

Tim S.