Actually, this is not precisely a Code::Blocks issue.
Nevertheless:
#include <iostream>
That already causes massive bloat, especially when using gcc/MinGW. Don't include
iostream if you don't absolutely have to.
Furthermore, you will want to check whether "generate debugging symbols" is turned on, and you may want to use "strip executable".