User forums > Help
Codeblocks CC isn't looking up nested include files.
indigo0086:
I posted a bug error of this but as I see it sink down on the list I think it just may be something that can be solved simply.
I do OpenGL Programming and use GLFW. The glfw.h file includes both gl.h and glu.h, but in the recent builds code completion isn't looking beyond the immediate include file for functions. If I start typing glu... nothing will come up, and if I start typing gl... code completion only returns glfw functions. How come it is not looking at includes within includes. is there a setting to change this?
MortenMacFly:
--- Quote from: indigo0086 on September 04, 2007, 02:32:21 pm ---is there a setting to change this?
--- End quote ---
Possibly you need to adjust the C++ parser options (project options -> tab C++ parser) to include the path to the GL files.
With regards, Morten.
indigo0086:
Still not working. I have the glfw libraries and headers in my mingw lib and include/GL directories respectively and I have mingw/include, and mingw/lib in my project options under search directories and libraries and still am getting the same problem.
[attachment deleted by admin]
MortenMacFly:
--- Quote from: indigo0086 on September 05, 2007, 02:37:03 pm ---Still not working. I have the glfw libraries and headers in my mingw lib and include/GL directories respectively and I have mingw/include, and mingw/lib in my project options under search directories and libraries and still am getting the same problem.
--- End quote ---
What happens if you include them anyway before the glfw header include? (Don't forget to save the file to have CC re-parsing.)
MortenMacFly:
--- Quote from: MortenMacFly on September 05, 2007, 02:46:06 pm ---What happens if you include them anyway before the glfw header include? (Don't forget to save the file to have CC re-parsing.)
--- End quote ---
It works for me if I include the header files exactly like this:
--- Code: ---#include "GL/gl.h"
#include "GL/glu.h"
#include "GL/glfw.h"
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version