加一个#include <windows.h >好了
那我这个程序却通不过
#include <windows.h >
#include <GL/gl.h>
#include <GL/glaux.h>
int main(int argc, char **argv)
{
auxInitDisplayMode(AUX_SINGLE|AUX_RGBA) ;
auxInitPosition(0, 0, 500, 500) ;
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() ;
}