Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where Can I Get libgcc_s_dw2-1.dll?

The programme I have written uses SFML but fails when run because libgcc_s_dw2-1.dll is missing. I'm using tdm-gcc and can't find the file anywhere on my computer and re-install doesn't help and a simple hello world programm works fine so I'm not sure why it needs this dll.

Which mingw package can this be found in? I've had a search on the site but cant find it. Apologies if I have just missed an obvious search result but this is incredibly frustrating! Thanks in advance, ell.

P.S. I'm on 64-bit Windows 7 by the way

EDIT: Sorry I forgot to mention I had already read the answer to another question with the same problem, but as I have said, I cannot find the file anywhere on my computer, in the bin directory or otherwise. Also, passing -static-libgcc and -static-libstdc++ to the compiler and/or linker gives me unrecognized option '-static-libstdc++'. Sorry for not clarifying that I have read this already. Thank you!

like image 422
Ell Avatar asked Feb 17 '12 14:02

Ell


1 Answers

That file implements the exception handling using DWARF information (new style, versus setjump/longjump or SJLj, the old style.

So you should need it only if your code depends on exceptions of any kind.

If you feel lucky you can grab my own compilation of this file from here.

like image 200
rodrigo Avatar answered Oct 19 '22 06:10

rodrigo