On 08/27/2011 10:49 AM, Denis Shelomovskij wrote:
Can anybody use GtkD with Win32 dmd 2.054+OPTLINK?
Some time ago I posted message "Building GtkD app on Win32 results in
111 MiB file mostly from zeroes (compressed size - 324 KiB)", but no
solution was found. I'll repeat some info:

Files (dmd 2.054 compiled) are here:
http://deoma-cmd.ru/files/other/huge-build.zip

library.lib: Zero bytes: 3_505_980 of 16_175_616 (21.67%)
main.obj: Zero bytes: 248 of 832 (29.81%)

After linking with OPTLINK:
testGtkD.exe: Zero bytes: 115_666_207 of 116_759_068 (99.06%)

Wow... I use linux and a few things I did to get my executable size down from 5mb, to about 1.1 mb was fairly simple. First edit sc.ini (dmd.conf for cool people), and take out the --export-dynamic then use strip and upx on the executable. Sorry if I can't help more

Reply via email to