using opengl with djgpp

i want to use opengl and glut with djgpp but i don’t know how to install libs and where can i find opengl.lib glut.lib and the headers, i have some libs, but i get a lot of errors and warnings.
i tried:

gcc -o prog.exe prog.c -lGL -lGLU -lglut

(with opengl.lib and glut.lib in lib directory) i don’t know what should i do.

Hi !

I have never used djgpp, but first of all, this is a dos compiler so you will not be able to use ordinary opengl (opengl32.lib) for this, I am nor sure but one possibility might be Mesa, but I am not sure if it still works on dos (you can find it at

Also, the djgpp compiler is based on the gcc compiler, so it is possible that it only works with .a libraries and not .lib, but I don’t know for sure.