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!