libglut.a : Where can I get it?

Hugh Winkler
Fri Sep 4 03:17:00 GMT 1998

I have just today compiled libglut and it works well, apparently, with the
code I was porting. You link to the MS GL libraries, not Mesa.

To build the three libs in the distribution at

I had to do the following:

1. Create 3 custom Makefiles for cygwin32: for the glut, mui, and gle libs.
The makefiles define and _WIN32, WIN32, and they build the libraries from
different constituent .o files than the unix builds. I made these makefiles
using imake, then modified the constituent files according to the ones in
the files (the makefiles for NMAKE and CL).

2. Modify the file lib/glut/win32_util.c trivially:

Old code :
#if defined(__CYGWIN32__)
#include <sys/timeb.h>

New code :
#if defined(__CYGWIN32__)
#include <sys/timeb.h>

I imagine some earlier distribution of cygwin32 did not contain
<sys/timeb.h>? Anyway, I am using b19 and this works for me.

I have put the makefiles, and the libglut.a (for intel), at

Hugh Winkler
Scout Systems, Inc.

> -----Original Message-----
> From: []On
> Behalf Of Jerry Oh
> ...snip...
> Does anyone have "libglut.a". Or let me know where I can get it.

For help on using this list (especially unsubscribing), send a message to
"" with one line of text: "help".

More information about the Cygwin mailing list