gluErrorString?

The Andy, your post seems to be empty… what was your question supposed to be?

Morgan

Sorry, my message got chopped off(you can see the rest of it if you reply to my previous message,) but this was my question:

I have set all of the OpenGL libraries to link before glut.lib, as well as other things, and nothing will work.

and I put my short code in there but it got chopped off.

here it is again:

#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include <glu.h>
#include “tk.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]);
InitGL();
glutDisplayFunc(DrawGLScene);
glutReshapeFunc(ReSizeGLScene);
glutMainLoop();
return 0;}

and the error:


Link Error : undefined ‘gluErrorString’ (code)
Referenced from ‘processWindowWorkList’ in glut.lib


thanks

[This message has been edited by The Andy (edited 07-05-2000).]

My first question would be, do you have glu.h somewhere in your MacOS Support folder (in the CodeWarrior folder)? Next do you have all of the following libraries in your project:

OpenGLLibraryStub
OpenGLUtilityStub (especially this one)
OpenGLMemoryStub

and your GLUT stub (can’t remember the exact name off the top of my head)?

Morgan

Yeah, I was just trying this morning and I found that it was indeed the OpenGLUtilityStub. Thanks

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.