OpenGL in Windows

Thanks to M. Kirby for the following note:
To get opengl code to work with Cygwin's gcc under Windows'98 SE I used the following commands:
 
gcc main.c -lglut32 -lglu32 -lopengl32 -o bird
 
OR
you can split the compilation/ linking stages as follows:
 
gcc -c main.c
  (compilation)
gcc main.o -lglut32 -lglu32 -lopengl32 -o bird
  (linking)
 
In both cases the source file is main.c, and the executable is bird.exe.
Note the backwards order of object file with respect to the libraries in the linking stage.
I tried these steps for both the most recent version of Cygwin (1.5.7-1) and an older version (1.1.?).  
In both installations of Cygwin it was not necessary to download or 
relocate any OpenGL files (i.e. the libraries or DLL's).

Last modified: Mon Mar 15 14:19:49 Pacific Standard Time 2004