Why are some dll static-linking stub libs (import

2019-05-02 09:44发布

问题:

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?