Linking problem

macboy
Unregistered
 
Post: #1
When I link this project I'm working on based off the NeHeX tutorials, it gives me the linker error:

Undefined symbols: _glBegin _glClear _glClearColor _glClearDepth _glColor3f _glDepthFunc ... and so on (rest is cut off)

I've done
#import <OpenGL/OpenGL.h>
#import <OpenGL/gl.h>
#import <OpenGL/glu.h>
in the first file that uses OGL.

Any clues? :?:
Quote this message in a reply
Apprentice
Posts: 12
Joined: 2003.02
Post: #2
Did you include the framework. For carbon i include agl.framework and opengl.framework.

just go project->add framework to add them

laziness,impatience, and hubris
Quote this message in a reply
macboy
Unregistered
 
Post: #3
Quote:Originally posted by fat-t
Did you include the framework. For carbon i include agl.framework and opengl.framework.

just go project->add framework to add them
Haha, thanks, that did it. Blush

I included OpenGL.framework.

And not that it matters now, but I'm using Cocoa if you couldn't tell by the #imports Wink
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  problem with linking with libjpeg Gecko 2 3,414 Oct 26, 2008 05:40 AM
Last Post: Gecko
  Problem linking GLSL Ilyasim 4 3,579 Dec 18, 2007 12:46 PM
Last Post: OneSadCookie
  openal linking problem on vc++ express 2005 abousoft 1 4,015 Jan 1, 2007 03:55 AM
Last Post: sealfin