User forums > General (but related to Code::Blocks)
wx/wx.h: No such file or directory, with wxWidgets. Numerous other wx/files
(1/1)
Aaron:
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
--- End code ---
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.
stahta01:
What is the real path to "wx/wx.h"?
What is the path you told Code::Blocks to use?
Tim S.
Aaron:
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:
stahta01:
--- Quote from: Aaron2 on March 14, 2015, 11:22:07 pm ---The actual path for wx.h is: C:\wxWidgets-3.0.2\include\wx\wx.h
--- End quote ---
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:
--- End code ---
Do you know that "-IC:\wxWidgets\include" does NOT contain the path you said it is at?
Tim S.
Navigation
[0] Message Index
Go to full version