Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mingw libgcc_s_sjlj-1.dll is missing

I'm trying to compile a program in codeblocks using mingw. I had to include libw2_32.a that I don't get any compiler errors. The program compiles fine but when I want to run it, it says that libgcc_s_sjlj-1.dll is missing.

I searched for this dll in my mingw installation but the only dll I found is: libgcc_s_dw2-1.dll

What am I doing wrong?

like image 525
Maecky Avatar asked Oct 16 '12 19:10

Maecky


1 Answers

You have to use -static-libgcc while compiling with mingw’s g++ to eliminate the dependency on LIBGCC_S_SJLJ-1.DLL. You can do that by adding static-libgcc to the linker flags.

I found this info in this post: http://www.qtcentre.org/threads/39639-MinGW-w64-dependency-on-LIBGCC_S_SJLJ-1-DLL

like image 182
bobestm Avatar answered Sep 28 '22 05:09

bobestm