我的理解是,无论谁编写了程序,都会编写帮助部分来解释可以传递给它的每个参数的作用,如果我输入,g++ --help
我会得到一个显示很多选项的说明“在我的情况下,我正在查看/usr/bin/arm-none-eabi-g++ --help
”,但它们看起来非常相似
我有 CMake 生成的输出,我试图逐步了解它,有时路径包含在 -I 中,有时包含在 -isystem 中
/usr/bin/arm-none-eabi-g++ \
"-I${PICO_SDK_PATH}/src/rp2_common/pico_atomic/include" \
-isystem "${PICO_SDK_PATH}/src/common/pico_stdlib_headers/include" \
有什么区别吗?
为什么我在屏幕上看不到以太-I
或-system
或?-D
--help
--help
靠近读段顶部
--target-help Display target specific command line options (including assembler and linker options).
--help={common|optimizers|params|target|warnings|[^]{joined|separate|undocumented}}[,...].
我不明白如何打开和查看此--help=
子帮助,看看它是否在子类别中进行了解释
我其实不确定为什么文本
--help
中没有这些键的描述。我只能猜测它们是如此古老和众所周知,以至于编写选项列表的人--help
认为不需要将它们包括在内?人们会期望它们位于主键--help
或--help=common
部分中,但可惜。但它们包含在完整文档中: https ://gcc.gnu.org/onlinedocs/
您可以从完整列表中找到更具体的列表,例如,
-I
和之间的区别-isystem
在此处描述:https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Directory-Options.html