iDevGames Forums
(Probably silly) OpenGL/XCode question - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Game Programming Fundamentals (/forum-7.html)
+--- Thread: (Probably silly) OpenGL/XCode question (/thread-4123.html)



(Probably silly) OpenGL/XCode question - stardark - Jul 3, 2006 10:00 PM

Howdy folks.. this is probably a silly question but its got me stumped..

I am new to Carbon/OpenGL/XCode, but know C/C++ pretty well (at least - I hope I do, Im employed as a C programmer)

I am following the NeHe tutorials, using the base Carbon Application as a template (thats been mostly hacked out).

I have both OpenGL and GLUT included in the Frameworks and Libraries section of XCode.

I managed to get a window to display, that went fine. When I went to draw things (triangles and quads), I get the following linking error (with ZeroLink turned on the error occurs at runtime rather than link time)

Code:
Undefined symbols: _glvertex3f

I'm sure its just something silly I have missed.. anyone have any advice?


(Probably silly) OpenGL/XCode question - StealthyCoin - Jul 3, 2006 10:26 PM

glVertex3f(0.0f, 0.0f, 0.0f);


(Probably silly) OpenGL/XCode question - stardark - Jul 3, 2006 10:35 PM

urghh.. typo - thanks. *feels stupid*


(Probably silly) OpenGL/XCode question - unknown - Jul 3, 2006 10:59 PM

remember to check the headers for the actual functions, and if you want to know what one does you can always type "man glVertex3f" in the Terminal.


(Probably silly) OpenGL/XCode question - OneSadCookie - Jul 4, 2006 12:09 AM

http://tips.onesadcookie.net/tips/published/GCC+Warning+Flags