问题
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