Compile no error, run no output, debug did not respond, the generated EXE file copied directly run, prompting "computer lost Libgcc_s_dw2-1.dll", these are because LIBGCC and libstdc default is dynamic link, did not find Libgcc_s_ The Dw2-1.dll file is causing the.
The workaround is to:
1. Add the directory of the Libgcc_s_dw2-1.dll file to the environment variable, it is in the installation directory of Mingw\bin, so add this environment variable can, but this situation is only to solve the EXE file in the local run, put on other computers or may not find this file.
2. The second type is to add the-static-libgcc-static-libstdc++ command to project->properties->c/c++ BUILD->SETTINGS->MINGW C + + Linker->miscellaneous->linker Flags Change link mode to static
The program can ' t-start because Libgcc_s_dw2-1.dll is missing
Running the C + + console in Eclipse does not output