Tutorial 1 - Microsoft Visual Studio C++ 6.0 Compiler Setup for OpenGL
Written by staff. Contact us
to submit your article for review.
Sep 13, 2016
You might be already familiar with library files on Windows (those that have .lib extention). 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.
This tutorial was written for Microsoft Visual C++ 6.0 but even in modern MVC IDEs, the process is similar. The only thing that has changed was the configuration screen layout. But you still incude libraries in pretty much the same way.
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 or IDE 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.