I have installed GLUT for Win32 version 3.7.6 from the CD accompanying Edward Angel’s book. Included therein are the files: glut.def, glut.h, glut32.dll, & glut32.lib.
I want to use DJGPP’s C compiler to compile one of Angel’s examples for Windows 98. I realize I need include files gl.h and glu.h (and possibly glext.h?). I’ve found these include files as part of Mesa-5.0.1.
Question # 1: are Mesa’s include files are the right ones to use? If not, from where should I get the correect ones?
I’ve reached the point where GNU’s linker (ld.exe) says it cannot find C:\WINDOWS\SYSTEM\OpenGL32.dll – however, I know that this file is there.
Question 2: am I compiling/linking correctly (see below)?
<-- see below for compiler invocation -->
gcc cubev.c -o cubev.exe -I…\GLUT\glut-3.7.6-bin -I…\GLUT\Mesa-5.0.1\includ
e -l C:\WINDOWS\SYSTEM\OpenGL32.dll -l C:\WINDOWS\SYSTEM\glu32.dll -lm
In file included from cubev.c:11:
…/GLUT/glut-3.7.6-bin/glut.h:151:1: warning: “APIENTRY” redefined
In file included from …/GLUT/glut-3.7.6-bin/glut.h:137,
…/GLUT/Mesa-5.0.1/include/GL/gl.h:92:1: warning: this is the location of the pr
cubev.c: In function
main': cubev.c:87: warning: return type ofmain’ is not `int’
c:/djgpp/bin/ld.exe: cannot find -lC:\WINDOWS\SYSTEM\OpenGL32.dll
collect2: ld returned 1 exit status