< include.hpp>和“include.hpp” [英] Difference between <include.hpp> and "include.hpp"
本文介绍了< include.hpp>和“include.hpp”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是C ++的新手。
使用和<>
我试图使用一些头文件形成一个开源库。该库中的所有头文件都包含在<>中。现在当我在头文件中做同样的事情,它在编译时失败。
I am trying to use some of the header files form an open source library. All header files in that library are included using <>. Now when I do the same in my header file, its failing at compile time.
推荐答案
<路径,而首先在文件的当前目录中查找头。
<> looks firstly in the header path for the header file whereas "" looks firstly in the current directory of the file for the header.
这篇关于< include.hpp>和“include.hpp”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文