Setting up OpenGL and GLUT on Windows 95, NT, etc.


  1. Get MSVC++. It should have header files and libraries for OpenGL. It also has help files covering OpenGL.

  2. Make sure you have OpenGL on your machine. OpenGL should be included with drivers for your video card.  Go to the OpenGL download page for more information.

  3. Get GLUT for Windows. Go to the GLUT page or the GLUT for Win32 page. You can place all DLL files in your WINDOWS/SYSTEM directory. Place all LIB files in your library directory for your MSVC++ installation (like C:\Program Files\Microsoft Visual Studio\VC98\Lib). Place all header files in your GL header file directory. (like C:\Program Files\Microsoft Visual Studio\VC98\Include\GL).

  4. Set up your MSVC++ project. I used the console AppWizard. Add the following libraries to your project library settings: opengl32.lib, glu32.lib, and glut32.lib. (You probably don't need glaux.lib since that is for the GL auxiliary library, but it shouldn't hurt.) This screen is under Project...Settings.

Watch out for typical Unix and DOS differences. Sometimes the include files are placed in a different location. If you are careful, your source can be compiled on both Windows and Unix.  Sometimes you may need to use #ifdef's.

Remember that you can use DOS2UNIX on the school Unix systems to remove all the weird ^M's in your program files.


Previous version

Last updated: 04/16/02 21:11