This document details the steps to get GLUT working along with Visual C++ Express Edition.
- Download and install Visual C++ Express Edition from http://msdn.microsoft.com/vstudio/express/visualc/default.aspx
- The default install of Visual C++ Express Edition builds for the .Net platform. We'll need to build for the Windows platform since OpenGL and GLUT are not yet fully supported under .Net. For this we'll need the Microsoft Platform SDK.
- Download and install Microsoft Platform SDK. Visual C++ Express Edition will need to be configured to build for Windows platform. All these instructions are available here: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/ (no longer valid, use http://msdn2.microsoft.com/en-us/express/aa700755.aspx instead)
- Now, we'll need GLUT. Download and unzip Nate Robin's Windows port of GLUT from here: http://www.xmission.com/~nate/glut.html
- Add glut.h to the GL directory in the platform SDK/include.
- In your Visual C++ Express Edition project properties -> Additional Linker Directories add the directory which has glut.lib
- Add the glut.dll to the Windows System32 directory.
- Your program which uses GLUT or OpenGL should compile under Visual C++ Express Edition now.
Say thanks to Ashwin Nanjappa!