Using OpenGL & GLUT in Visual Studio .NET 2003
Quick Guide

By

This is the quick version of the more detailed guide. It assumes Visual Studio .NET 2003 and GLUT are already installed.

Instructions

  1. Create an empty C++ Win32 Console Project.
  2. Add at least one source file to your project.
  3. Open the project's Property Pages dialog and select All Configurations from the Configuration: list box.
  4. In the Linker → Input subtree, add the following to the Additional Dependencies text box:

    opengl32.lib glu32.lib glut32.lib
  5. To disable the console window, go to the Linker → Command Line subtree and add the following code to the Additional Options: text box:

    /SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup

    Note: Do not do this step if you want to see any console output using printf, cout, cerr, etc.
  6. Always compile and test your program on a Linux machine before submitting it for grading.

Distributing Your Program

If you're going to share your program with people for fame and glory, build a Release version so the executable isn't gigantic. More importantly, remember to include the glut32.dll file with your application, because most users won't have it in their WINDOWS/system directory.


Last Update: September 10, 2005

Valid XHTML 1.1!