原来编译错误还可以这么写
#if defined(__gl_h_) || defined(__GL_H__)
#error gl.h included before glew.h
#endif
#error gl.h included before glew.h
#endif
===============
fatal error C1189: #error : gl.h included before glew.h c:\program files (x86)\microsoft visual studio 9.0\vc\include\gl\glew.h 84 testLib3DS