VC++ compile errors when including gl.h

后端 未结 4 1673
自闭症患者
自闭症患者 2021-02-04 01:05

Compiling a file that uses OpenGL with Visual C++, when I try to include the gl.h header file I get about 150 unhelpful compile errors:

error C2144: syntax error : \'voi

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-04 01:44

    if you use visual c++, make sure you already have the opengl library. use #include before the #include and if you use #include in your program make sure you are not type like this #include , if you type like that it can be error "GL/glut.h no such file or directory"

提交回复
热议问题