(Probably silly) OpenGL/XCode question

Post: #1
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)

Undefined symbols: _glvertex3f

I'm sure its just something silly I have missed.. anyone have any advice?
Quote this message in a reply
Posts: 67
Joined: 2006.06
Post: #2
glVertex3f(0.0f, 0.0f, 0.0f);

The machine does not run without the coin.
Quote this message in a reply
Post: #3
urghh.. typo - thanks. *feels stupid*
Quote this message in a reply
Posts: 1,403
Joined: 2005.07
Post: #4
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.

Sir, e^iπ + 1 = 0, hence God exists; reply!
Quote this message in a reply
Posts: 5,143
Joined: 2002.04
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  OpenGL Velocity and Grouping of Lines (C++, Xcode) TheThirdL3g 2 5,533 Jul 29, 2010 01:28 PM
Last Post: SethWillits
  OpenGL transparency question? MrPenguin9 9 8,456 Apr 20, 2010 07:25 AM
Last Post: Beast
  Xcode gdb SIGTRAP on an OpenGL Project mikey 4 6,152 May 25, 2009 03:39 AM
Last Post: mikey
  XCode OpenGL Game Engine MoltenWhale 20 20,083 Aug 17, 2008 07:10 AM
Last Post: ThemsAllTook
  OpenGL question Leroy 2 3,669 Apr 28, 2007 04:48 PM
Last Post: BinarySpike