1>c:\opengl\gltools\include\glbatch.h(77): error C2061: 语法错误: 标识符“GLenum”
1>c:\opengl\gltools\include\glbatch.h(86): error C2061: 语法错误: 标识符“GLuint”
1>c:\opengl\gltools\include\glbatch.h(89): error C2061: 语法错误: 标识符“GLfloat”
1>c:\opengl\gltools\include\glbatch.h(90): error C2061: 语法错误: 标识符“GLfloat”
因为lgbatch.h的头文件
#ifdef WIN32
#include <windows.h> // Must have for Windows platform builds
#ifndef GLEW_STATIC
#define GLEW_STATIC
#endif
#include <gl\glew.h> // OpenGL Extension "autoloader"
#include <gl\gl.h> // Microsoft OpenGL headers (version 1.1 by themselves)
#endif
中#ifdef WIN32不能识别出win7系统(我用的是win7+vs2010) 应该改成#ifdef
_WIN32