How to get dll file size down in Code::Blocks+MinGW?

I recently compared dll builds, and a dll released on Dev-C++ is only 18kb compared to the massive size in Code::Blocks+MinGW, wich is 483kb. As you can see the file is 27 times larger.
So in my interests, what does the other 96% of the dll contain?

And what should I toggle on/off to reduce the filesize closer to the Dev-C++ build.

Thanks for helping.
What files ? Did you use STL in it ? If so, then it is normal.


PS - I hope you did use release using "-s" options (strip the executable)
Thanks, it was the iostream.h, I accidentally included it, but I didnt actually need it.
Yes, including iostream has exactly this effect, even if you don't use it at all. This is because libstdc++ it is compiled statically into executable (unlike Visual Studio for example which uses a separate DLL).

For C programs MinGW uses msvcrt.dll, which is already included in every version of windows.
Topic archived. No new replies allowed.