Troubles with GLUT
hello,
may i know what mean for this error:
c:\Program Files\Microsoft Visual Studio 8\VC\lib\glut32.lib : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B8
the open gl program is :
#include <GL/glut.h>
void renderScene(void) {
glClear(GL_COLOR_BUFFER_BIT);
glBegin(GL_TRIANGLES);
glVertex3f(-0.5,-0.5,0.0);
glVertex3f(0.5,0.0,0.0);
glVertex3f(0.0,0.5,0.0);
glEnd();
glFlush();
}
void main(int argc, char **argv) {
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DEPTH | GLUT_SINGLE | GLUT_RGBA);
glutInitWindowPosition(100,100);
glutInitWindowSize(320,320);
glutCreateWindow("3D Tech- GLUT Tutorial");
glutDisplayFunc(renderScene);
glutMainLoop();
}
and i ald link the Opengl32.lib glut32.lib glaux.lib , but still get the error above....why??
[Edited by - LessBread on May 24, 2006 2:11:41 AM]
Quote:Original post by feun
may i know what mean for this error:
c:\Program Files\Microsoft Visual Studio 8\VC\lib\glut32.lib : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B8
Looks like just what it says. The file "glut32.lib" is invalid or corrupt.
I would suggest re-downloading GLUT for Win32, installing over your existing library and seeing if that fixes the problem.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement