iDevGames Forums
OpenGL Issue - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: OpenGL Issue (/thread-3459.html)



OpenGL Issue - hammonjj - Feb 28, 2007 08:50 AM

I strted learning openGL so I copied one of Nehe's tutorials to make sure that I had everything configured properly before actually trying to code stuff, but I get this error message when I try to compile:

[Session started at 2007-02-28 08:37:39 -0700.]
ZeroLink: unknown symbol '_ReSizeGLScene'

Test2 has exited due to signal 6 (SIGABRT).

Yes, I have added the two frameworks for openGL.Here's my code:

Code:
#include <OpenGL/gl.h>        // Header File For The OpenGL32 Library
#include <OpenGL/glu.h>        // Header File For The GLu32 Library
#include <GLUT/glut.h>        // Header File For The GLut Library

#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]);

    InitGL();

    glutDisplayFunc(DrawGLScene);
    glutReshapeFunc(ReSizeGLScene);

    glutMainLoop();

    return 0;
}

Thanks a lot!


OpenGL Issue - akb825 - Feb 28, 2007 11:20 AM

You have ReSizeGLScene declared there, but do you ever implement it anywhere?


OpenGL Issue - ThemsAllTook - Feb 28, 2007 12:35 PM

NeHe tutorials are quite problematic in this way... They don't always include implementations for all the functions the examples use. Your best bet may be to look at other examples or download working source for the relevant tutorial and copy out of that.