問題:生成時提示 gl.h中出現一堆錯誤,如
error C2144: 語法錯誤 : “void”的前面應有“;” error C2182: “APIENTRY” : 非法使用“void”類型 error C2086: “int APIENTRY” : 重定義 error C2146: 語法錯誤 : 缺少“;”(在標識符“glClearStencil”的前面)
解決辦法:
在
#include <GL/gl.h>
#include <GL/glut.h>
前面加上
#include <windows.h>