PDA

View Full Version : me = noob, having issues compiling window



xenonex
02-10-2004, 03:27 PM
I am learning open gl from a tutorial at: http://nehe.gamedev.net/

i finished making the window but i get an error :cannot find file gl.gl.h when i compile

i've tried getting those header files but no matter what i do i can't get them in the right directory. what must be done? i haven't seen much with regards to xp, all NT, so maybe it's somehow related to windows xp? i have no idea, and help would be appreciated for me the noob.

dorbie
02-10-2004, 05:25 PM
You need to put the include files in the include directory or edit your include path to list the directory location where they are.

Or you could just use #include "" instead of #include <> and specify an explicit path all the way to the file if you're really struggling.

Include paths, files & linking are very basic compiler issues so you should try to get a good understanding of this before progressing further.

Understand that <gl/gl.h> *requires* that gl.h be in a subdirectory called gl below the include path.

nexusone
02-10-2004, 05:44 PM
What compiler are you using?
And are you sure you downloaded the correct tutor for your compiler. nehe has versions of his tutors for diffrent compilers and operating systems.

xenonex
02-11-2004, 02:53 AM
i'm using visual c++ 6.0. thx for the help with the include file locations, i will try that when next i get a chance.

dvm
02-11-2004, 07:41 AM
Don't overwrite the header files. I think that whatever version of Visual C++ 6.0 you've got should already have the headers in the correct place. It's just that they're really old (moucard wishes: anybody at microsoft listening?). Also in taking a better look, if you've not mistyped it in the forum, you write gl.gl.h. That should be gl/gl.h. Hope that helps.