Why are some dll static-linking stub libs (import libraries) so big?

时光怂恿深爱的人放手 提交于 2019-12-07 08:10:46

问题


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?

来源:https://stackoverflow.com/questions/8983959/why-are-some-dll-static-linking-stub-libs-import-libraries-so-big

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!