为什么某些 dll 静态链接存根库(导入库)如此大?
我在链接到 pcl(点云库)时注意到,某些 dll 存根库的大小超过 10MB,而 dll 本身的大小还不到该大小的一半(这些是发布版本!)。难道存根库不应该只包含最少的信息以便可以访问 dll 信息吗?怎么会比他们引用的dll文件大呢?
对我来说,相关性在于,通过链接到大存根库,我自己的可执行文件的大小也大大增加;我想通过使用 dll 来防止一些事情。
VS 中是否有设置可以更改 dll 链接器行为,以便将更多或更少的内容放入存根库中?
I noticed while linking to the pcl (point cloud library) that some of the dll stub libs have more than 10MB where the dll themselves have less than half of that size (these are release builds!). Shouldn't the stub lib only contain minimal information so that the dll information is accessible? How can it be larger than the dll files they refer to?
The relevancy for me is that by linking to the big stub libs, my own executables are also greatly growing in size; something I wanted to prevent by using dlls.
Are there settings in VS that change the dll linker behavoiur so that it puts more or less stuff into the stub libs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论