Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fatal Error 1080: Missing .h file

Status
Not open for further replies.

pghTech

Technical User
Jul 19, 2006
37
US
Ok I am trying to compile a simple sample program in a book I am reading and I have loaded the workspace from the source directory that has all the workspace, source files, and resource files to compile it. However, I continue to have one error that it is it cannot include gl\glut.h that the file/directory doesn't exist.

However, the gl.h and glut.h files are there in the same directory, as well as I have added those .h files to the project.

the path that it specifies it is using to find the files is even correct. What would I be doing wrong?
 
What compiler & version are you using?
What is the Include Files path in your project settings?
 
However, the gl.h and glut.h files are there in the same directory
But it cannot include gl\glut.h : check gl directory[/i], not a gl.h file.
 
@cpjust
I am using 2005 express, as far as path:
"C:\Program Files\Microsoft Visual Studio 8\VC\include\glut.h" is what VS is saying the path is.

@ArkM
Well I apologize for my ignorance, but when you say to check gl directory [/i] can you elaborate?


 
Your original post made it look like the file was named glut.h in the gl directory... ArkM just used a close italics tag instead of a close bold.

Anyhow, sometimes you have to put dot-slash in front of your header file names like this: ".\gl.h" ".\glut.h"

 
I have VC++ 2005 express, and I don't have a glut.h in my VC\include directory. You need to fix the Include Path in your Project Settings to point to the correct directory where glut.h exists.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top