Jump to content
  • Advertisement
Sign in to follow this  
Atash

OpenGL missing ogl files from VC++ Compiler

This topic is 4293 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a VC++ compiler, but it is missing gl.h, glu.h, glut.h, opengl32.lib, glu32.lib, glut32.lib, and opengl32.dll... And I can't find a single place to download it. Everywhere I look it says that they are supplied with the compiler, which I know is true, and yet I lack them. Could someone tell me where to get the windows files? plzthx in advance :-)

Share this post


Link to post
Share on other sites
Advertisement
If you have a legal copy of the compiler, the OpenGL Headers in Visual C++ are located in the GL directory. You would include them as follows:

#include <GL/gl.h>
#include <GL/glu.h>

To link the library files, do the following:

#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")

This should be everything you need to get going, provided your paths are setup correctly (should be done automatically, unless they've been screwed up). Hope this helps.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!