PDA

View Full Version : glTranslatef



G
06-30-2003, 01:44 PM
How do you use arrays as the parameters.
glTranslatefa[i], b[i], c[i];

i keep on getting errors

error LNK2001: unresolved external symbol _a
error LNK2001: unresolved external symbol _c
error LNK2001: unresolved external symbol _c

jra101
06-30-2003, 01:56 PM
glTranslatef(a[i], b[i], c[i])

jwatte
06-30-2003, 10:43 PM
That's a C/C++ language/tool question, not an OpenGL question. I suggest looking up the description of that error in the documentation for your compiler/linker.

G
07-01-2003, 07:17 AM
It is in that form i typed it wrong
glTranslatef(a[i], b[i], c[i])

jra101
07-01-2003, 09:02 AM
How are the a, b, and c variables declared and initialized?