小编Joh*_*lin的帖子

如何解决我的OpenGL程序中的"计算机"问题?glew32.dll?

当我尝试构建并运行我的OpenGL + GLEW + GLFW程序时,它构建得很好但不会运行,给我这个错误: "The program can't start because glew32.dll is missing from your computer. Try reinstalling the program to fix this problem."

glew32.lib作为静态库链接.我也在用#define GLEW_STATIC.

那么,为什么程序会提示输入DLL文件?

#include <iostream>

//#define GLEW_STATIC

// GLEW
#include <include/GL/glew.h>

// GLFW
#include <include/GLFW/glfw3.h>

//we define GLEW_STATIC, since we’re using the static version of the GLEW library.
#define GLEW_STATIC


// Is called whenever a key is pressed/released via GLFW
void key_callback(GLFWwindow* window, int key, int scancode, int action, int mode)
{ …
Run Code Online (Sandbox Code Playgroud)

opengl dll glew

5
推荐指数
3
解决办法
2万
查看次数

标签 统计

dll ×1

glew ×1

opengl ×1