Original Post
Warning: Total OpenGL Newb.
I tried working with both the tutorials on this site for simply setting up an OpenGL Window on Mac OSX.
Using code:
// START 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
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;
}
//END CODE
and having included the glut and opengl frameworks in Mac''s project builder, I get the linking warning and error:
"warning prebinding disabled because of undefined symbols"
and
"Undefined symbols: _DrawGLScene _InitGL _ResizeGLScene"
Its been almost a half a year since I last worked in C++ and most of my experience has been in Java- so I assume my problem lies in that vice.
If anyone can help out- I''d be much obliged.