SFML community forums

Bindings - other languages => C => Topic started by: venzon on April 10, 2011, 10:32:51 pm

Title: 1.6 CSFML dlls in MinGW package depend on libgcc_s_dw2-1.dll
Post by: venzon on April 10, 2011, 10:32:51 pm
I'm using the CSFML library to compile my application in Windows with MinGW/MSYS. I have linked my application with the -static-libgcc option. If I run depends.exe (dependencywalker.com) on my executable I see that it doesn't directly depend on libgcc_s_dw2-1.dll, but because my application depends on (for example) csfml-audio.dll, and because csfml-audio.dll depends on libgcc_s_dw2-1.dll, my application won't run unless I bundle libgcc_s_dw2-1.dll. I don't want to distribute libgcc_s_dw2-1.dll. Is there any chance that I can convince you chaps to compile the CSFML lib for mingw with the -static-libgcc linker option to remove this dependency from your officially distributed DLLs?
Title: 1.6 CSFML dlls in MinGW package depend on libgcc_s_dw2-1.dll
Post by: Laurent on April 10, 2011, 10:39:51 pm
Everything is supposed to be compiled with the -static-libgcc linker flag. If csfml-audio.dll is not, it's a "bug", and it's most likely already fixed for SFML 2 (I changed the whole build system).
Title: 1.6 CSFML dlls in MinGW package depend on libgcc_s_dw2-1.dll
Post by: venzon on April 11, 2011, 07:07:02 am
Indeed, all of the 1.6 csfml-*.dll files distributed on your download page don't look like they were compiled with -static-libgcc. Any change you'll recompile the 1.6 dlls with this flag and update your official packages? Or is 1.6 ancient history as far as you're concerned?
Title: 1.6 CSFML dlls in MinGW package depend on libgcc_s_dw2-1.dll
Post by: Laurent on April 11, 2011, 07:58:17 am
Quote
Any change you'll recompile the 1.6 dlls with this flag and update your official packages? Or is 1.6 ancient history as far as you're concerned?

Second option ;)

But SFML is open source, nobody will stop you if you want to do it yourself and recompile.