Errors With NeHe OpenGL Guide

Posts: 3
Joined: 2009.09
Post: #1
I just got done reading the book "Learn C on the Mac" and I feel like I've got allot of the C concepts down, and now I'm trying to learn OpenGL so I can start making a simple little game...So I found NeHe's guides and started trying to use them in Xcode, but so far I've only gotten errors.

Here is my code:
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <GLUT/glut.h>

#define kWindowWidth    400
#define kWindowHeight    300

GLvoid InitGL(GLvoid);
GLvoid DrawGLScene(GLvoid);
GLvoid ReSizeGLScene(int Width, int Height);

int main(int argc, char** argv)
    glutInit(&argc, argv);
    glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
    glutInitWindowSize (kWindowWidth, kWindowHeight);
    glutInitWindowPosition (100, 100);
    glutCreateWindow (argv[0]);
    return 0;

There errors I'm getting are in the following image taken right after I tried compling the code above.

[Image: Screenshot2009-09-06at12405PM.png]

I copied and pasted the code from the tutorial at( so I know it wasn't because I just typed something wrong...

Could someone please tell me what I'm doing wrong? I am using Xcode 3.2 and Snow Leopard.

If you need any other details just tell me, I'll be glad to give me, and thank you in advance...
Quote this message in a reply
Posts: 3,591
Joined: 2003.06
Post: #2
When it says "symbols not found" that means there is no function defined for those functions. The only function I see defined in your snippet is main().
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Beginner's Art Creation Guide (2D Games) mickyg 0 8,778 Apr 19, 2012 02:53 PM
Last Post: mickyg
  NeHe revival? Duane 20 13,553 Jul 11, 2007 09:57 AM
Last Post: AnotherJake
  Possible Errors with OpenGL and texture pointers Jones 6 5,494 Sep 20, 2006 04:44 PM
Last Post: OneSadCookie
  nehe tutorials - fullscreen Michael 5 6,318 Oct 28, 2004 08:08 AM
Last Post: Michael
  NeHe example djohnson 4 4,618 Jan 30, 2004 01:58 PM
Last Post: Sohta