Hi, I’m just starting out and I have two different sets of code, one I pasted from a pdf document and one I copied from a book, and I get the same error for both:

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

I have set all of the OpenGL libraries to link before glut.lib, as well as other things, and nothing will work.
this is one of the codes I tried, which I hope is legible:

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


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

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