OpenGL, GLUT and GLUI under Win XP with Visual C++ .NET (VC7)

If you are compiling from the CSS labs, the library, dll, and header files are installed properly.

To create a Visual C++ project for an OpenGL program using the GLUT or GLUI toolkits:

  1. Select "New -> Project" from the "File" menu
  2. Select "Win32 Console Application" and give your project a name/location
  3. Select "Empty Project"
  4. Add the source code for the application to the project

In order to make your application link properly, the following modification needs to be made to your project.

The necessary .lib, .dll, and .h files are available below. The suggested installation locations are valid for a default installation. All files are installed correctly on the CSS lab machines. If you wish to compile on your own machine, only the glut and glui files need to be copied. If you wish to compile only glut applications, the glui files are not needed. If you wish to compile glui applications, the glut files are needed as glui is based on glut.

HEADER FILES

glut.h installed in ..\Microsoft Visual Studio .Net 2003\Vc7\PlatformSDK\Include\gl

glui.h installed in ..\Microsoft Visual Studio .Net 2003\Vc7\PlatformSDK\Include\gl

LIBRARY FILES

glut32.lib installed in ..\Microsoft Visual Studio .Net 2003\Vc7\PlatformSDK\Lib

glui32.lib installed in ..\Microsoft Visual Studio .Net 2003\Vc7\PlatformSDK\Lib

DLL FILES

glut32.dll installed in C:\WINDOWS\system32

There is no glui dll file.

In order for your source code to be cross-platform (will compile and link on XP and Linux) you must:

Zip file of complete GLUI project