Setting up Microsoft Visual C++ Compiler to Work With OpenGL
You might be already familiar with library files on Windows (those that have .lib extension). Working with OpenGL, there are two main libraries you need to link your compiler to. They are opengl32.lib and glu32.lib. Just search your computer for them.
You should have these libraries natively installed on your Windows or OSX out of the box. Add those libraries to the Object/Library modules box located under the Link tab in Settings on the Project menu, and you're ready to go.
You might want to go to some OpenGL related sites to get the latest version of these libraries. In your source code you will have to #include "gl/gl.h" and "gl/glu.h". You will also find that you may need to download something that is called "glew" or "glee" library (choose one, I use glew, but they accomplish the same thing.) Search for them on Google and add them to your project. They are basically gl function and extension headers for working with OpenGL.
If you have a different compiler, other than MVC++6, you will have to find your own way of adding these libraries to your project. However, I am planning on providing better tutorials on setting up your compiler to work with OpenGL.
© 2014 OpenGL Tutorials.