opengl配置,初学者,要疯了

笑客v 2017-08-02 12:32:13
找eglew.h找好久好不易找到,编译提示要在glew.h之前包含gl.h 四处找 好不易找到gl.h文件 在包含后仍旧这样提示。郁闷死了,求前辈指点下
...全文
376 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
笑客v 2017-08-02
  • 打赏
  • 举报
回复
是因为gl.h版本老?或是缺少了gl.lib? 从哪下最新版?官网找好久没找到 在论坛和c盘找的
笑客v 2017-08-02
  • 打赏
  • 举报
回复
// dllmain.cpp : 定义 DLL 应用程序的入口点。 #include "stdafx.h" #include "windows.h" #include "stdio.h" #include "stdlib.h" #include <gl/GL.h> #include <gl/GLU.h> #include <gl/glaux.h> #include <gl/glut.h> #include <gl/glew.h> #include <gl/eglew.h> #include <gl/glxew.h> #include <assert.h>
笑客v 2017-08-02
  • 打赏
  • 举报
回复
严重性 代码 说明 项目 文件 行 禁止显示状态 错误(活动) E0020 未定义标识符 "int32_t" WindowsLib c:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\gl\eglew.h 115 错误(活动) E0035 #error 指令: gl.h included before glew.h WindowsLib c:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\gl\glew.h 85 错误(活动) E0020 未定义标识符 "GLchar" WindowsLib c:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\gl\glew.h 1817 错误(活动) E0020 未定义标识符 "GLchar" WindowsLib c:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.10.25017\include\gl\glew.h 1828 .....................................................省略200条错误
trytry1992 2017-08-02
  • 打赏
  • 举报
回复
你就不能一次性把所有.h拷过去吗
赵4老师 2017-08-02
  • 打赏
  • 举报
回复
搜网络教程“学OpenGL编3D游戏”。

24,860

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧