Tutorial: How to setup GLUT with Visual Studio 2005
Welcome to the The ProgrammersTalk Community forums.
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
Put the file "glut32.dll" into the system directory (Usually: "C:\WINDOWS\system32")
If you don't have permission to move files into the system directory, have a copy of "glut32.dll" in the same directory as your executable.
Put the file "glut.h" into the standard Visual C++ include directoy
(This should be something like: "C:\Program Files\Microsoft Visual Studio.NET\Vc7\PlatformSDK\Include\gl")
You've got the right directory if you see a copy of "gl.h"
Put the file "glut32.lib" into the standard Visual C++ library directory
(This should be something like: "C:\Program Files\Microsoft Visual Studio.NET\Vc7\PlatformSDK\lib")
There should be lots of .lib files here, including "opengl32.lib" and "glu32.lib".
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:
Under "Additional Dependancies", add "glut32.lib opengl32.lib glu32.lib"
NOTE: Later in the course, you may also need to install GLEW. Follow the same directions: install the DLLs into the system directory, the header files in the include directory, and the library files into the lib directory.