tags:

views:

25

answers:

1

This is just a bit of a general question regading app/lib file sizes. When I build a particular library in my C++ solution I notice that the .lib file size is larger in the release build than in the debug (1.2mb Vs 800k). However when I build an app in the same solution, using the aforementioned library, the release .exe is always smaller (as I'd expect) than thew debug .exe (50k vs 200k). I would always have expected the release verisons of anything to be smaller than the debug versions. What gives?

A: 

It could be since you did not say, that there is a release lib and debug lib. Using the lib allows the linker to be able to fix up the references to the functions found in the associated corresponding DLL. As for in general, release builds strips off debugging information and generally, optimized code.

Hope this helps, Best regards, Tom.

tommieb75
I know the release build is smaller and why it's smaller. I was just interested in why the realese build of the library was larger than the debug build of the library???
Tim Ring