SFML Woes...

Oct 20, 2010 at 7:28pm
I'm with a friend right now trying to install SFML and am having an abundance of problems. It seems we've both managed to get this error:

This application has failed to start because libgcc_s_dw2-1.dll was not found. Re-installing the application may fix this problem.


I'm not really sure what's going on here. I've scavenged for the .dll, used some linker options, but no luck. If anyone has had similar problems or knows what's going on, that would be great.

We are using Code::Blocks and SFML 1.6

Thanks
Last edited on Oct 21, 2010 at 12:44am
Oct 20, 2010 at 7:42pm
Try to do what it says: reinstall the compiler or the IDE ( or both )
Oct 20, 2010 at 8:02pm
I've reinstalled Code::Blocks twice and SFML three times. I guess another fresh reinstall wouldn't hurt though...
Oct 20, 2010 at 8:10pm
Oct 21, 2010 at 12:45am
That, oddly enough, is the exact link I went too earlier. I tried all the solutions but to no avail. I'll just cross my fingers and do a fresh install again.
Last edited on Oct 21, 2010 at 12:46am
Oct 21, 2010 at 12:55am
have you tried code::blocks with compiler package?
Oct 21, 2010 at 1:06am
You mean install Code::Blocks with MinGW? If so, yes, that's what I did.
Oct 21, 2010 at 1:33am
This is the version of code::blocks I'm using and it's working find.
http://download.berlios.de/codeblocks/codeblocks-10.05mingw-setup.exe

Maybe the problem here is that your SFML binaries are compiled in a different version of Mingw. Try compiling SFML on your own.
Oct 21, 2010 at 2:58am
That has nothing to do with SFML. That's the GNU runtime library -- which for licensing purposes is now in a DLL. The problem is that the DLL is not in your PATH, so when you run the application, it cannot find the DLL, and so complains.

You'll find it in the 'bin' directory of your MinGW install. You can copy it to your C:\WINDOWS\system32 directory and/or copy it to the same directory as your executable.

Good luck!
Oct 21, 2010 at 4:17am
Oh! It's nice to have someone to correct and educate me. Anyway compiling on my own works for me without libgcc_s_dw2-1.dll
Oct 21, 2010 at 9:41am
correct me if im wrong... i think codeblocks installation also copies that dll to system32 folder..
Oct 21, 2010 at 12:32pm
@Duoas

The closest thing I could find to it was libgcc_s_sjlj-1.dll
Oct 21, 2010 at 2:04pm
It has to have the exact same name or the program won't be able to find it. Don't try renaming it.
Oct 21, 2010 at 2:14pm
I fixed it by installing a dw2 version of TDM-GCC by using the on demand installer.
Topic archived. No new replies allowed.