While writing some openGL code using glut with mesa on linux, I figured
there must be some way to compile and run the code on my Win2k box with some
gcc windows port. I did so succesfully with Cygwin, but since I'd rather use
MinGW for gcc and Cygwin for UNIX-like tools that MinGW doesn't have ports
for yet, the question of compiling the code with MinGW arose naturally. I
was very pleased to see the files libglut32.a, libopengl32.a et all in ./lib
and so I proceeded with attempting to compile the source.
Unfortunately, to my surprise there are no openGL headers that come with
Cygwin, neither in the MinGW-1.1.tar.gz package, nor in
w32api-1.1-src.tar.gz. I copied the headers from Cygwin, but then glut32.dll
was missing too. After copying that from Cygwin also, it finally worked and
I had my thing going.
So my questions are:
1. if MinGW doesn't plan to have openGL support, then why the stray openGL
libraries in the win32 package?
2. if MinGW does have openGL support, then why doesn't it include full oGL
support? I was lucky enough to have Cygwin too, but other people might not
be able to solve the problem.
I apologize if there is an explanation somewhere and I missed it. I assume
MinGW is intended to have openGL support, since I saw stuff on the list
about openGL, but nothing that answered my questions. Hope I didn't miss