找不到包含的头文件 [英] Cannot find header file included
问题描述
所以我把这个图书馆粘贴在项目旁边。我在项目属性中包含了所有文件夹和.lib -si需要。
So i have this Library just pasted next to the project. I included into project properties all the folders and .lib -s i need.
现在,我需要在我的文件中使用该库中的一些xyz.h头文件,我有一些项目文件夹A,以及他在文件夹B中的所有文件。
Now, I need to use some xyz.h header file from that library in my file, I have project in some folder A, and all his files in some folder B.
当我包括:
#include" xyz.h"
#include "xyz.h"
进入文件夹B中的文件,它说它无法看到xyz.h文件。
into file in folder B, it says that it cant see tha xyz.h file.
有人可以向我解释原因,以及如何启用它看到了吗?
Can someone explain to me why, and how can i enable it to see it ??
推荐答案
所以我有这个图书馆只是粘贴在项目旁边。我在项目属性中包含了所有文件夹和.lib -si需要。
So i have this Library just pasted next to the project. I included into project properties all the folders and .lib -s i need.
现在,我需要在我的文件中使用该库中的一些xyz.h头文件,我有一些项目文件夹A,以及他在文件夹B中的所有文件。
Now, I need to use some xyz.h header file from that library in my file, I have project in some folder A, and all his files in some folder B.
当我包括:
#include" xyz.h"
#include "xyz.h"
进入文件夹B中的文件,它说它无法看到xyz.h文件。
into file in folder B, it says that it cant see tha xyz.h file.
有人可以向我解释原因,以及如何启用它看到了吗?
Can someone explain to me why, and how can i enable it to see it ??
如果A和B是"附近的"一件简单的事情就是这样的事情,比如一个美元.b $ b
If A and B are "nearby" one simple thing to do is something like
#include" ../ B / xyz.h"
#include "../B/xyz.h"
(我对你的描述中的A和B有点困惑,但你明白了。)
(I'm a bit confused about what is A and B in your description, but you get the idea.)
这篇关于找不到包含的头文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!