OpenGL

Moderators: Sephiroth
Number of threads: 103
Number of posts: 200

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Undefined reference in Glut.h Posted by ldries46 on 2 Feb 2011 at 6:19 AM
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?



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.