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