编译 C++ 时默认包含的文件夹列表文件

发布于 2024-09-19 08:05:44 字数 215 浏览 3 评论 0原文

大家好,

我正在命令行使用 MS C++ 编译器 cl.exe 来构建我的项目。 /I 中必须包含的目录列表非常庞大。我不想为我需要编译的每个文件包含这个巨大的列表。

您是否知道如何设置默认包含的文件夹列表,以便在构建 .cpp 文件时这些文件夹不会出现在命令行中?是否存在某个环境变量或某些配置?

谢谢 环氧乙烷

HI All

I am using MS C++ compiler cl.exe at command line to build my projects. The list of directory that must be included with /Iis huge. I don't want to include this big huge list for each file I need to compile.

Do you know a way to set the list of folders to be included by default so that these will not appear at the command line when building .cpp files? Does exist some environment variable for that or some configuration?

Thanks
EO

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

巷雨优美回忆 2024-09-26 08:05:44

将命令放入响应文件中:

“响应文件可以包含您在命令行上指定的任何命令。”

Put the commands in a response file:

"A response file can contain any commands that you would specify on the command line."

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文