gpt4 book ai didi

c++ - Linux - 从不同位置编译 C++ 项目文件

转载 作者:太空宇宙 更新时间:2023-11-04 09:49:09 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
How to add a default include path for gcc in linux?

我想知道如果它们包含在代码本身中,是否可以将来自不同位置的文件编译在一起?假设头文件在另一个位置,但 cpp 文件中有 #include "header.h"。我在网站上寻找答案,但我唯一找到的是如何从同一位置编译多个文件。

编辑:我在 linux 上使用 g++ 编译器

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com