This page was mostly written by Jon Roberts. I've copied it here (1) so I can pretend like it's mine & take credit (2) because Jon's no longer at JCU, so his website will probably be removed soon. Cheers Jon.

Making glut work with your compiler (MS Visual C++ 6.0):

  1. Obtain Glut Libraries (here (118k zip) .. or get them from the source)
  2. Copy the glut32.dll to your windows\system32 directory,
  3. Copy the glut.h files to your C++ compiler's include directory,
    1. (VC - C:\Program Files\Microsoft Visual Studio\VC98\include\gl)
    2. Copying the same file to (C:\Program Files\Microsoft Visual Studio\VC98\include) - one directory up - is also recommended.
  4. Copy the glut32.lib files to your C++ compiler's lib director
    1. C:\Program Files\Microsoft Visual Studio\VC98\lib\)

To test it works:

Try compiling and executing this simple glut c++ program (which does almost nothing). If you see a black screen with two lines it worked! Yay! Otherwise re-read above.

A crude work-around is to put the glut32.dll in the same dir as your project. Actually; if you make an executable of your program, you should place glut32.dll in the same dir as the .exe. Why? Well, if you e-mail the zip file to your mates (since your so proud of your 3d creations), they probably doesn't have glut installed, and will generate an error unless glut32.dll is found. Notice first line of code is: "#include <glut.h>".

Making glut work with MS .NET (Visual C++ 7):

I don't recommend using .NET - I don't know much about it, but it looks like it's a real pain sometimes - but if you want to set up glut in the .NET 2003 environment anyhow, follow the instructions at:
http://helpdesk.cs.tamu.edu/docs/glut_Visual_Studio2003.
The process is imilar to above, but ALL directories are different and you'll also need to find and copy several extra .lib and .h files. Annoying really, but I did get it to work. If you want the above example to work, you'll also have to comment out "#include <stdlib.h>" (the second line).

BACK TO CP2060 LINKS