Error executing file. exe generated by Code::Blocks

Asked

Viewed 922 times

1

In the folder bin/debug from Code::Blocks project, it warns this error. how to fix it? I downloaded the DLL and sent pro system32, but the error persists. SS

2 answers

2


Mingw, the compiler that Code::Blocks is using, requires this DLL in the applications it generates in certain circumstances in order to handle the received exceptions. It must follow the executable at all times, or at least be in place that can be automatically located by the operating system. The solution is to keep it close to the application.

0

I found another way. I have two computers, the executables generated in one needed the . dll and those generated in the other not.... I compared the two installed programs (Settings > Compiler... > Tollchain Executables > Compiler’s installation directory), the notebook one pointed to Mingw 4.8.1 needing libgcc_s_dw2-1.dll next to the . exe generated to run, but the desktop one points to Mingw 4.9.2, where this . exe is already generated without the need to add the .dll. So I just changed the notebook compiler path to the newer version and my problem is gone! I hope I helped!

Caminho do compilador antigo (no meu caso) Caminho do compilador que resolveu meu caso

Browser other questions tagged

You are not signed in. Login or sign up in order to post.