Running the C + + console in Eclipse does not output

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.