News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

wx/wx.h: No such file or directory, with wxWidgets. Numerous other wx/files

Started by Aaron, March 13, 2015, 12:17:41 AM

Previous topic - Next topic

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.
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.

stahta01

What is the real path to "wx/wx.h"?
What is the path you told Code::Blocks to use?

Tim S.

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

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

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



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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]