Compiler hängt bei OpenGL
-
Hallo, könnt ihr mir helfen und mir sagen warum sich mein Compiler(Visual C++ 6 Standard) immer aufhängt und nicht wietermacht wenn ich diesen Code kompiliere:
#include <GL/gl.h> #include "aux.h" int main(int argc, char** argv) { auxInitDisplayMode(AUX_SINGLE | AUX_RGBA); auxInitPosition(0, 0, 500, 500); auxInitWindow(argv[0]); glClearColor(0.0, 0.0, 0.0, 0.0); glClear(GL_COLOR_BUFFER_BIT); glColor3f(1.0, 1.0, 1.0); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0); glBegin(GL_POLYGON); glVertex2f(-0.5, -0.5); glVertex2f(-0.5, 0.5); glVertex2f(0.5, 0.5); glVertex2f(0.5, -0.5); glEnd(); glFlush(); sleep(10); }Danke schonmal im voraus
-
Probier mal nen neueren Compiler.