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

1k views Asked by At

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?

0

There are 0 answers