没有找到标题,当我linka .lib在visual studio 2012 [英] Cant find the header when I linka .lib in visual studio 2012
问题描述
所以我试图链接32位GLFW.lib和我把它放在我的桌面上,并且这样做:
http://s1.postimg.org/40q6d5367/Untitled.png
,并确保包含 #include< GL / glfw.h>
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
推荐答案
应该有库本身的include文件,也就是gl / glfw.h(可能还有一堆其他的gl / gl ... h文件)。
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).
此文件(这些文件)需要放在编译器遇到#include语句时可以找到的位置,即在INCLUDE中列出的目录项目或编译器设置,例如在工具/选项/项目和设置/ VC ++目录/包含文件下(请参阅这里)
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)
这篇关于没有找到标题,当我linka .lib在visual studio 2012的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!