OpenGL with Eclipse CDT + MinGW + GLEW + GLFW: Undefined References
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Edit: I have in the meantime figured this out and written a detailed answer below. I just tried switching from the Express version of MSVC 10 to Eclipse CDT on Win7, and while configuring I encountered a problem with the following simple OpenGL code (which works fine in Visual Studio): #define GLEW_STATIC #include <GL/glew.h> #include <GLFW/glfw3.h> int main() { GLFWwindow* w; if (!glfwInit()) return -1; w = glfwCreateWindow(640, 480, "Hello World", NULL, NULL); if (!w) { glfwTerminate(); return -1; } glfwMakeContextCurrent(w);