Cant find the header when I linka .lib in visual studio 2012

寵の児 提交于 2019-12-11 03:46:14

问题


so im trying to link the 32 bit GLFW.lib and I placed it on my desktop and did this: http://s1.postimg.org/40q6d5367/Untitled.png and made sure to include #include <GL/glfw.h> but it just gives me this everytime

Error   1   error C1083: Cannot open include file: 'GL/glfw.h': No such file or directory

回答1:


There should be the include file that comes with the library itself, i.e. the gl/glfw.h (together with a bunch of other gl/gl...h files probably).

This file (these files) needs to be placed somewhere where the compiler can find it when it encounters an #include statement, i.e. in one of the directories listed under INCLUDE in the project or compiler settings, e.g. under Tools / Options / Projects and Settings / VC++ Directories / Include files (see here)



来源:https://stackoverflow.com/questions/17052938/cant-find-the-header-when-i-linka-lib-in-visual-studio-2012

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