Sign in to follow this  
feun

OpenGL Troubles with GLUT

Recommended Posts

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]

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this