Using upx (http://upx.sourceforge.net/#download), I've been able to reduce the binary size by half, from 8.42 Mb to 4.21 Mb:
File size Ratio Format Name
-------------------- ------ ----------- -----------
292864 -> 103936 35.49% win32/pe codeblocks.exe
21504 -> 10752 50.00% win32/pe console_runner.exe
2043904 -> 666112 32.59% win32/pe codeblocks.dll
418304 -> 200704 47.98% win32/pe exchndl.dll
15960 -> 12888 80.75% win32/pe mingwm10.dll
6037465 -> 3426777 56.76% win32/pe wxmsw242.dll
-------------------- ------ ----------- -----------
8830001 -> 4421169 50.07% [ 6 files ]
Might be a good idea to use upx in the build/packaging chain to reduce the package size. 56K users would be very thankful (Not me! :))
EDIT: Also, by linking to wxWidgets statically instead of dynamically, you guarantee that you only pull stuff you use. Are there any good reasons for using wxWidgets dynamically, aside from the INSANELY slow linking by gcc? (Last time I tried, it took half an hour to link wxWidgets statically into an application).
Well, I just gave DM (version 8.4.5) another chance, I still think that I'll stick with gcc ;)
Project : Console application
Compiler : Digital Mars Compiler (called directly)
Directory : D:\Desktop\Neuer Ordner\
--------------------------------------------------------------------------------
Switching to target: default
Compiling: main.cpp
nbytes = 65520, ph_maxsize = 65520
Internal error: ph 1848
--- errorlevel 1
Process terminated with status 1 (0 minutes, 19 seconds)
0 errors, 0 warnings