read
Install
Linux
$sudo aptitude install freeglut3-dev
Windows
The latest version (3.7) of GLUT windows binaries can be found at http://www.xmission.com/~nate/glut.html or from a million other places on the web. Name of the zip file is: glut-3.7.6-bin.zip
Download it and extract the zipfile to some temporary folder.
Copy glut32.dll file to your windows System folder. On Win2000/XP its
Source
Download it and extract the zipfile to some temporary folder.
Copy glut32.dll file to your windows System folder. On Win2000/XP its
C:\winnt\system. On Win98 its C:\windows\system.
Source
Compile
Now you can use "GL/glut.h" in your projects...
$g++ main.cpp -o outname -lglut
Run
$./outname