Skip to main content
gamedev.net
🔒 Locked

openGL help required.....

Started by ric03uec Jul 8, 2008 at 12:11 AM 5 replies 1.7k views
Original Post
ric03uec
ric03uec
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
My_Mind_Is_Going
My_Mind_Is_Going
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.
ric03uec
ric03uec
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_luv_cplusplus
i_luv_cplusplus
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
OpenGL fanboy.
ric03uec
ric03uec
if not devcpp, then can how do i do the linking part in msvc.

thanks
Lord_Evil
Lord_Evil
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
If I was helpful, feel free to rate me up ;)If I wasn't and you feel to rate me down, please let me know why!
ric03uec
ric03uec
thanks a lot..

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.