Skip to main content
GameDev.net gamedev.net
🔒 Locked

OpenGL Header Files

Started by CarlosNYM Sep 13, 2007 at 3:59 PM 6 replies 2.2k views
Original Post
CarlosNYM
CarlosNYM
Hey I recently found a pretty good OpenGL tutorial that I would like to dabble a little bit in while imlearning C++. However in the examples they use these header files GL/gl.h GL/glut.h I tried installing OpenGL but it keeps giving me the error that it can't not find these header files. I looked in my header file folder and I don't see them anywhere either. If anyone could tell me how I could get these. I would appreciate it.
Pzc
Pzc
You don't mention what development environment you're using on which platform but I'm fairly sure that for MSVC++ Express 2005 you get it with the platform SDK.
CarlosNYM
CarlosNYM
Sorry, Im using Dev-C++ on Windows XP. I just don't know where to get these header files from.
szymczyk
szymczyk
GL/gl.h is how Linux includes the gl.h header. On Windows use the following statement:

#include

Pzc is right. The OpenGL headers and libraries are part of the Windows Platform SDK.

Mark
Mark Szymczyk
Author of Mac Game Programming and Xcode Tools Sensei
http://www.meandmark.com
CarlosNYM
CarlosNYM
Oh ok, I was able to get the glu.h file but I can not find the gl.h file.

What is this Windows SDK? Something that comes with OS or something I have to download?
fitfool
fitfool
Dont use Dev-c++. Its old and outdated. Download Microsoft's Visual c++ Express. Then look for the "Windows sdk", and search around on how to install it, and youll be ready to go.
Pzc
Pzc
Quote:
Original post by CarlosNYM
...
What is this Windows SDK? Something that comes with OS or something I have to download?


You do indeed have to download it. Here's a link to page on MS where you can download their free Express editions, a bit further down they link to the Platform SDK.
Clicky !
hughiecoles
hughiecoles
for the windows SDK, just goto microsoft.com and search "Windows SDK" i believe you'll be looking for the R2 version from what i remember
--------------------------------------Not All Martyrs See Divinity, But At Least You Tried

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.