Undefined reference in Glut.h

I am using Open GL for the first time and have tried a neat instalation. I am using the GNAT GPS developper envirement on a Windows 7 system where the disk is divided in a number of partitions. the C: partition is meant for system only. All programs are located in the program files directory on D:
Now when compiuling I get in the builder phase 111 errors in the form of:
486:1 undefined reference to `__glutInitWithExit@12 Builder results/Builder results000486.
6 of these including this one were in the glut.h file
The source code on this line is:
static void APIENTRY glutInit_ATEXIT_HACK(int *argcp, char **argv) { __glutInitWithExit(argcp, argv, exit); }
In the messages I find:
libtest.a(image.o): In function `glutInit_ATEXIT_HACK':
d:/program files/gnat/include/GL/glut.h:486: undefined reference to `__glutInitWithExit'
What do I do wrong?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!