missing ogl files from VC++ Compiler
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 :-)
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.
#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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement