As I had many problems setting Visual Studio 2008 for using OpenGL I will ask this question that can be useful to some people:
Which are the steps to follow in order to use OpenGL with C++ in Visual Studio 2008?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First of all you need to have a video card and check that it works with OpenGL and the drivers are updated. I used the test in this link to check it.
It is also important to check that Visual Studio 2008 is correctly installed and that the following path is created in your computer:
Now we can follow the installation steps:
1.- Download GLUT from https://www.opengl.org/resources/libraries/glut/glut_downloads.php, unzip and copy the files as instructed below:
2.- Create an empty C++ Win32 application:
and click Finish.
3.- Add a new C++ source file:
4.- Link to the OpenGL libraries (important step):
5.- Download this sample code.
6.- It is also necessary to set the paths in Visual Studio:
In Tools -> Options -> VC++ Directories -> Include Files:
In Configuration Properties → Linker → Additional Library
Directories: