编译链接 gcc g++

编译问题

gcc g++ 帮助文档

3.14 Options for Linking 章节中的 -Wl,option, option 支持哪些选项,可以再哪里找到详细支持哪些命令,各个命令的含义
比如-Wl,--rpath=./, 全文找了都没有找到相关说明

本文介绍了GCC的选项"-Wl,OPTION"中的选项是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我阅读GCC的信息手册时,发现链接选项-Wl,OPTION:

When I read the GCC's info manual, I found the link option -Wl,OPTION:

`-Wl,OPTION'
Pass OPTION as an option to the linker. If OPTION contains
commas, it is split into multiple options at the commas.
但是我找不到OPTION的定义.在哪里可以找到它?

But I could not find the definition of the OPTION. Where can I find it?

推荐答案
链接器称为 ld .搜寻 ld选项例如 http://sourceware.org/binutils/docs-2.16/ld/Options.html

The linker is called ld. Googling for ld options gives e.g. http://sourceware.org/binutils/docs-2.16/ld/Options.html

这篇关于GCC的选项"-Wl,OPTION"中的选项是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!