-static-libgcc didn't work gdc dhello.d -o dhello -static-libgcc c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lgcc_eh c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../../mingw32/bin/ld.exe: cannot find -lgcc_eh collect2: ld returned 1 exit status
:( On 22-Jul-11 5:55 AM, Daniel Green wrote: > On 7/21/2011 6:52 PM, Daniel Green wrote: >> On 7/21/2011 6:44 AM, Kagamin wrote: >>> Andre Tampubolon Wrote: >>> >>>> I just tried GDC on Windows, and I found out that the executables >>>> created are linked into libgcc_s_sjlj-1.dll. Will it be possible to get >>>> rid of the dependency on this DLL? >>> >>> Yes, there's a static version of libgcc, you should play with ld a bit. >> GCC has a command line option -static. That should remove the dependency. > Sorry, -static-libgcc is the option. > > http://gcc.gnu.org/onlinedocs/gcc-4.5.3/gcc/Link-Options.html#Link-Options -- - Andre Tampubolon -