In the bin/debug
folder of the Code :: Blocks project, it warns you of this error. How can I fix it? I downloaded the DLL and sent it to system32
, but the error persists.
MinGW, the compiler that Code :: Blocks is using, requires this DLL in the applications it generates under certain circumstances in order to handle exceptions received. It should always accompany the executable. Or by being in a location that can be located automatically by the operating system. The solution is to keep it close to the application.
I found another way. I have two computers, the executables generated in one needed the .dll and the ones generated in the other did not .... I compared the two installed programs (Settings > Compiler ...> Tollchain Executables> Compiler's installation directory), the notebook pointed to MinGW 4.8.1 needing libgcc_s_dw2-1.dll next to the .exe generated to run, however the desktop points to MinGW 4.9.2, where this .exe is already generated without the need to add .dll. So I just changed the compiler path from the notebook to the newer version and my problem is gone! I hope I have helped!