PDA

View Full Version : urgent



daren
10-15-2001, 06:16 AM
hey there
i'm new to graphics programming and i've got a background in C programming. I downloaded a couple of C files implementing things like teapot, sphere, rotating cube etc but i simply can't compile them. I used project in Borland C++ and Vis C++ but things are not working. Am i missing something??? The compiler keeps giving me messages about erros in the gh.h header file. PLease help me out!!!!

harsman
10-15-2001, 06:33 AM
Try including windows.h before gl.h and make sure you link to the proper libraries.

daren
10-15-2001, 06:36 AM
which libraries?? Do you mean I've got to add the glut32.dll file to the project???

pleopard
10-15-2001, 11:51 AM
You should add the following in sequence to the top of your program (in sequence):

#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h> // Optional GL Utility Library
#include <gl/glaux.h> // Optional GL Aux Toolkit
#include <gl/glut.h> // Optional GLUT Toolkit

And add to your project as needed :

OpenGL32.lib, glu32.lib, glaux.lib, glut32.lib