Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing libgcc_s_dw2-1.dll Error when launching MinGW Compiled exe

I receive an error message when launching a MinGW compiled executable. I'm using a Windows 7 machine.

I have the MinGW bin directory in my Windows Path environment variable (checked and re-checked) and said dll does exist in that folder.

I understand I could move the dll to the exe directory but the application doesn't need to be distributed to anywhere that doesn't have a MinGW installation with the environment variable set up correctly (standard environment on our work machines). Many colleagues are using the same executable without an issue. The only difference I know of is that most (possibly all) colleagues are working on Windows XP, with me on Windows 7.

Additionally I do not have access to the build server to change the compiler flags to static link the library.

So despite the workarounds I mention, I want to get to the bottom of why it doesn't work with the current setup.

Any help would be appreciated!

Cheers.

like image 405
burn5 Avatar asked Sep 10 '25 19:09

burn5


1 Answers

What version of mingw are you using? 4.4.0?

Download the package gcc-core-4.4.0-mingw32-dll.tar.gz from here.
Copy required dll from the bin folder into your mingw bin folder.

like image 147
ollo Avatar answered Sep 13 '25 08:09

ollo