openGL help required.....
hi everyone,
i just started off with openGL and am having problems in executing the code on devcpp. it gives the follwing errors on compile time.
[Linker error] undefined reference to '_glutInitWithExit'
[Linker error] undefined reference to '_glutCreateMenuWithExit'
[Linker error] undefined reference to '_glutGetWindow'
[Linker error] undefined reference to '_glutSetWindow'
....
...and so on
i dont have any experience in openGL so please elaborate the answer a bit...
thanks
It sounds like you're not linking your project to the GLUT library/libraries. I haven't really used it myself but you probably need to download something like glut32.lib from somewhere like here: http://www.opengl.org/resources/libraries/glut/glut_downloads.php and make sure your project is linking to it.
actually this is what i need to know..how do i link the glut dll and the libraries to my source file or project....
I don't remember exactly, because I don't use DevCpp (it was abandoned some time ago and isn't recommended anymore, Code::Blocks is a better alternative).
Try reading point 9 of this: http://www.bloodshed.net/faq.html#9
Try reading point 9 of this: http://www.bloodshed.net/faq.html#9
In Visual C++ 2005 express:
project properties -> Linker -> Input -> Additional Dependencies
Enter the file there.
The path goes here:
project properties -> Linker -> General -> Additional Library Directories
project properties -> Linker -> Input -> Additional Dependencies
Enter the file there.
The path goes here:
project properties -> Linker -> General -> Additional Library Directories
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement