这个程序怎么才能运行
mjken 2006-07-12 11:15:19 #include <GL/gl.h>
#include <GL/glaux.h>
#include "glos.h"
#include <windows.h>
void main(void)
{
auxInitDisplayMode(AUX_SINGLE|AUX_RGBA);
auxInitPosition(0,0,500,500);
auxInitWindow("mjken");
glClearColor(0.0,0.0,0.0,0.0);
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0,0.0,0.0);
glRectf(-0.5,-0.5,0.5,0.5);
glFlush();
_sleep();
}
///
这个是一个opengl的小程序
但运行的时候老是有错误
--------------------Configuration: opgl位图 - Win32 Debug--------------------
Compiling...
opgl位图.cpp
d:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing ';' before type 'void'
d:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: 'WINGDIAPI' : missing storage-class or type specifiers
d:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
我在project setting 那里设置了 把一些lib文件加进去了 但还是有问题 请大家帮帮忙 分析一下
等待 谢谢