Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Undefined reference in Glut.h

ldries46ldries46 Posts: 2Member
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.