missing ogl files from VC++ Compiler

Started by
1 comment, last by angry 17 years, 6 months ago
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 :-)
*After Argument*P1: What was it about?P2: Something involving a chair, a cat, and a rubber ducky...
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.
Otherwise download the Microsoft Windows Platform SDK.

This topic is closed to new replies.

Advertisement