Running OpenGL on Visual Studio 2005

I’ve been learning OpenGL for a little while and I got sample codes to analyze sometimes. In some cases, I got errors like “Can not open file GLUT.h”, “Can not open file GLUT32.lib”..and stuff like this. First I thought I was because of the corruption of my VS libraries and wanna fix it up. After searching around, I realized that neither XP nor VS2005 come with Glut with them. And to save the world on this occasion, you have to do the following:

1. Get the newest version of GLUT here: GLUT 3.7.6 for Windows.

2.

File  Location
glut32.dll C:\WINDOWS\system\  (or system32)
glut32.lib C:\Program Files\Microsoft Visual Studio 2005\VC\PlatformSDK\Lib
glut.h C:\Program Files\Microsoft Visual Studio 2005\VC\PlatformSDK\Include\gl

3. Make sure your Visual C++ project links in the GLUT/gl/glu libraries. This can be difficult to find. In Visual Studio 2003.NET, I think this is located in:

  • Menu: “Project -> (your-project-name) Properties”
  • Tab: “Configuration Properties -> Linker -> Input”
  • Under “Additional Dependancies”, add “glut32.lib opengl32.lib glu32.lib”

** Sharing of programs that uses glut32 must includes glut32.dll also**

13 Responses to “Running OpenGL on Visual Studio 2005”

  1. thank you for the speedy tutorial

  2. Thanks for posting this quick tutorial.

  3. Stalker Says:

    Thank you very much! It’s very important info for me!

  4. Very useful, thanx

  5. Vajindar Laddad Says:

    Thanks a million ….

  6. i am not able to see the total destination in step 2 for the library files

  7. @sravanti that would be
    C:\Program Files\Microsoft Visual Studio 8\VC\include

  8. i am not able to get an option such as step 3…i have 2005 version can any one suggest me the right options pls…..

  9. jai srivastav Says:

    its working correctly…………
    thanks

  10. jai srivastav Says:

    its working correctly thanks……………

  11. Thanks. It works for dummies too.

  12. I do all of step but I get this error:
    fatal error c1083:can not open include file ‘gl/glut.h’:no such file or directory

    I used this header:
    #include
    #include
    #include
    #include
    #include
    please guide me.

  13. I need opengl code for visual c++ 2005.net

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.