Eclipse CDT compilation error internal builder: cannot run program "GCC ":

Source: Internet
Author: User

Eclipse + CDT edit CProgramError:

Compilation error:

***** Rebuild of configuration debug for project example ****

* *** Internal builder is used for build ****
Gcc-O0-G3-wall-C-fmessage-length = 0-osrc \ demo. O .. \ SRC \ demo. c
Internal builder: cannot run program "GCC ":????????? ?
Build error occurred, build is stopped
Time consumed: 0 ms.

 

Analyze the cause of failure:

 

1. Add the bin path of mingw to the environment variable of windows, and enter gcc-V under cmd to display the GGC version.

2. the mingw cannot be installed under the program files on disk D. Because the path contains spaces, GCC is developed in Linux, and the space is a Separator by default. Therefore, this path is invalid, therefore, GCC cannot be found.

3. There is a big difference between the installation and download of eclipse CDT and the update and installation. There is a jar below the Plugins during the download: org. Eclipse. CDT. Core. win32_5.0.0.200902130801.jar
Copy to eclipse and decompress it to the folder type, and delete the originalJar: org. Eclipse. CDT. Core. win32_5.0.0.200902130801.jar

 

Compilation is successful.

ReferenceArticle: Http://blog.sina.com.cn/s/blog_61ecbc2e0100zlzz.html

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.