栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

如何将存档的所有对象包含在共享对象中?

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

如何将存档的所有对象包含在共享对象中?

您可以尝试(ld(2)):

   --whole-archive       For each archive mentioned on the command line after the --whole-archive option, include every object file in the       archive in the link, rather than searching the archive for the required object files.  This is normally used to turn       an archive file into a shared library, forcing every object to be included in the resulting shared library.  This       option may be used more than once.

(gcc -Wl,-完整档案)

另外,您应该

-Wl,--no-whole-archive
在库列表的末尾。(如德米特里·尤达科夫在下面的评论中所述)



转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/408695.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号