(Probably silly) OpenGL/XCode question

stardark
Unregistered
 
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)

Code:
Undefined symbols: _glvertex3f

I'm sure its just something silly I have missed.. anyone have any advice?
Quote this message in a reply
Member
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
stardark
Unregistered
 
Post: #3
urghh.. typo - thanks. *feels stupid*
Quote this message in a reply
Sage
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
Luminary
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 3,500 Jul 29, 2010 01:28 PM
Last Post: SethWillits
  Xcode gdb SIGTRAP on an OpenGL Project mikey 4 3,725 May 25, 2009 03:39 AM
Last Post: mikey
  XCode OpenGL Game Engine MoltenWhale 20 13,076 Aug 17, 2008 07:10 AM
Last Post: ThemsAllTook
  OpenGL question Leroy 2 2,152 Apr 28, 2007 04:48 PM
Last Post: BinarySpike
  Silly Pet Peeve or something I should be doing... WhatMeWorry 7 3,677 Nov 30, 2005 02:35 PM
Last Post: OneSadCookie