Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: 1.6 CSFML dlls in MinGW package depend on libgcc_s_dw2-1.dll  (Read 5465 times)

0 Members and 2 Guests are viewing this topic.

venzon

  • Newbie
  • *
  • Posts: 2
    • View Profile
1.6 CSFML dlls in MinGW package depend on libgcc_s_dw2-1.dll
« 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
1.6 CSFML dlls in MinGW package depend on libgcc_s_dw2-1.dll
« Reply #1 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).
Laurent Gomila - SFML developer

venzon

  • Newbie
  • *
  • Posts: 2
    • View Profile
1.6 CSFML dlls in MinGW package depend on libgcc_s_dw2-1.dll
« Reply #2 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
1.6 CSFML dlls in MinGW package depend on libgcc_s_dw2-1.dll
« Reply #3 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.
Laurent Gomila - SFML developer