Author Topic: wx/wx.h: No such file or directory, with wxWidgets. Numerous other wx/files  (Read 12247 times)

Offline Aaron

  • Multiple posting newcomer
  • *
  • Posts: 59
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.
« Last Edit: March 13, 2015, 01:00:25 am by Aaron2 »

Online stahta01

  • Lives here!
  • ****
  • Posts: 7665
    • My Best Post
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Aaron

  • Multiple posting newcomer
  • *
  • Posts: 59
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:

Online stahta01

  • Lives here!
  • ****
  • Posts: 7665
    • My Best Post
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.
« Last Edit: March 15, 2015, 01:30:51 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org