当我尝试构建并运行我的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)