I have just installed Open GL and the GLUT libraries and when I run a program I get the following error : -
--------------------Configuration: OpenGL - Win32 Debug--------------------
Compiling…
openGL.cpp
Linking…
e:\visual c\VC\LIB\glut32.lib : fatal error LNK1106: invalid file or disk full: cannot seek to 0x39d50e15
Error executing link.exe.
OpenGL.exe - 1 error(s), 0 warning(s)
Does anyone know what the problem is here as I cant find it, I have pasted the program at the bottom.
Thanks, Brian
#include<windows.h>
#include<gl/glut.h>
#include<iostream.h>
#include<stdlib.h>
void display(void) {
glClear(GL_COLOR_BUFFER_BIT); //clear all pixels
glColor3f(1.0, 1.0, 1.0);
glBegin(GL_POLYGON);
glVertex3f(0.5, 0.5, 0.0);
glVertex3f(1.0, 0.5, 0.0);
glVertex3f(1.0, 1.0, 0.0);
glVertex3f(0.5, 1.0, 0.0);
glEnd();
glFlush();
}
void init(void) {
glClearColor(0.0, 0.0, 0.0, 0.0);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0.0, 1.0, 0.0, 1.0, -1.0, 1.0);
}
int main(int argc, char** argv) {
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
glutInitWindowSize(250,250);
glutInitWindowPosition(100, 100);
glutCreateWindow(“Rectangle”);
init();
glutDisplayFunc(display);
glutMainLoop();
return 0;
}