在编译期间不指定头文件 [英] not specifying header files during compilation

查看:69
本文介绍了在编译期间不指定头文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到当人们手动编译时,例如,使用

gcc 等。一个没有提到头文件的名称,只是 .cpp 文件,

这是真的吗?

Hi, I have noticed that when one does compilation manually, e.g., using
gcc etc. one does not mention names of header files, just .cpp files,
is this true?

推荐答案

是的,这是真的,因为源文件头文件包含 d( .cpp )那些。

在命令行中,如果需要,您可以指定头文件的文件夹。
Yes, that's true, because header files are included by the source (.cpp ) ones.
On the command line you specify, if needed, the folder(s) of the header files.


这篇关于在编译期间不指定头文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆