PDA

View Full Version : using opengl with djgpp



Luis
05-17-2002, 08:35 PM
Hi!
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.
Thanks.

mikael_aronsson
05-18-2002, 04:46 PM
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 www.sourceforge.net). (http://www.sourceforge.net).)

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.

Mikael