PDA

View Full Version : help me, pls..



02-14-2005, 12:16 AM
I want to draw a torus, my function is
gltDrawTorus(parameters) but i got the link errors such as :

unresolved external symbol _gltInitFrame
unresolved external symbol _gltMakeShadowMatrix
unresolved external symbol _gltDrawTorus

can any one pls tell me what is the problem?

thanks.

dvm
02-14-2005, 12:26 AM
I haven't seen a glt extension before, what library is it? Anyway since it says unresolved external symbol it means it can find the .lib file (or .o if you're using linux).
What you need to do is to tell the compiler where to find the "glt.lib" (or whatever its name).
In visual studio you go to project properties->linker->additional libraries if I remember correctly.
In gcc you probably should provide -lglt or something. Post again if you need further help.

02-14-2005, 03:19 AM
Thanks a lot, I have made the mistake, actually it is the function which reside in other header file. Thanks a lot.

zukko
02-14-2005, 02:13 PM
isnt it glut instead of glt?

02-15-2005, 06:58 AM
no, its not the glut problem, because part of my gl coding is from my friend, and according to him, that is the function written by opengl superbible's author. the author keeps the function into other separate header file, that is why i have that errors. anyhow, i still don't have time to really figure it our actually due to the workload.