Visual Studio 2012 C++ OpenGL GLFW linker error

五迷三道 提交于 2019-12-02 02:23:06

It looks like you need to link against:

glfw.lib 
opengl32.lib

It would be worth reading the release notes: here

You're getting these errors because you're not linking to the GFWL library, or not linking to it correctly. That library contains definitions for the functions you're trying to call.

Section 4.2 of the GFWL readme file explains which libraries to use when linking; if you're statically linking (looks like you are) or using the DLL, the steps you need will be different.

For future readers that already have linked against the correct libraries and might have a similar problem with GLAD files for C++ projects:

I simply had to include the glad.c file in the project via the Properties tab (Which should pop up whenever you click on a file, you can enable properties tab via View > Properties Window).

Make sure that "Included in project" is set to True:

This was the reason why I had unresolved external symbols for glad.c, which anyone in here might find useful.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!