Summary of problems in eclipse + CDT under Cent-OS6.0

Source: Internet
Author: User

1. the header file cannot be parsed.

Set the header file address:

Add these two variables to WINDOW> preferences> C/C ++> environment:
 
Set c_include_path to/usr/include
 
Set cpp_include_path to/usr/include/C ++/4.6.1
 
4.6.1 is the GCC version, which can be obtained using gcc -- version. You can change it to the corresponding version.

You can also use cplus_include_path to try

2. makefile can be generated, and makefile can be executed, but eclipse itself prompts: Make has no rule "all"

It should be a setup problem and no makefile is found. Currently, you can only specify C/C ++ application as the execution file generated by makefile in run> run commands> C/C ++ Application> main.

Then execute makefile to compile and use eclipse for single-step debugging.

3. There is a problem I can see on the Internet that I want to downgrade the gdb version. I don't remember what the problem is.

After that, I tried to solve the problem, wondering if it was the same as the name of the created Project and the name of the main file. Suspect!

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.