OpenGL Issue
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:
Thanks a lot!
[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!
You have ReSizeGLScene declared there, but do you ever implement it anywhere?
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.
Possibly Related Threads...
Thread: | Author | Replies: | Views: | Last Post | |
OpenGL Pixel Buffer Object setup issue | dotbianry | 2 | 6,223 |
Jan 6, 2013 11:03 AM Last Post: dotbianry |
|
Opengl alpha premultiplication issue | Najdorf | 5 | 7,974 |
Nov 13, 2008 09:49 AM Last Post: Najdorf |