【发布时间】:2014-09-10 03:00:22
【问题描述】:
我正在从ld 的人那里复制粘贴section :-
-u symbol
--undefined=symbol
Force symbol to be entered in the output file as an undefined symbol. Doing this
may,for example, trigger linking of additional modules from standard libraries.
`-u' may be repeated with different option arguments to enter additional
undefined symbols.
如何实际使用此选项?就像我如何在我的源代码中触发附加模块的链接一样,这个选项什么时候真正有用?
【问题讨论】:
-
这是一个 c++ 问题吗?
-
我在找一个c++源代码示例
-
我能找到的唯一附加信息是
This option is equivalent to the EXTERN linker script command.,但关于该命令的信息是相同的,但需要注意它等同于-u。
标签: c++ linker ld linker-flags