I will not talk about the steps for installing CDT in Ubuntu. Refer to the steps below. After the installation is complete, run eclipse to start testing. An error occurs when you create a cproject and a c ++ project, as shown in:
Install CDT under Ubuntu and other steps I will not talk about here, refer to the http://www.linuxidc.com/Linux/2011-05/35966.htm, the main step is to install JDK, set environment variables, download CDT, unzip to the custom directory can be.
After the installation is complete, run eclipse to start testing.
An error occurs when you create a c project and c ++ project, as shown in:
This problem occurs because g ++ is not installed, so g ++ is re-installed. you can install it through the command or ubuntu Software Center. The command is as follows:
Sudo apt-get install g ++
After installation, it still looks like this. After restarting eclipse, it looks like this ..
Later, after comparing with colleagues, I found that the include is not the same, but the correct configuration is as follows:
My configuration is as follows:
Obviously lack of c ++/4.6/backward and c ++/4.6/i686-linux-gnu, do not know if this is the reason, the reconstruction of the project will not work, and later by deleting the workspace, after rebuilding the space, re-create the project. The configuration will automatically include the two. I don't know whether it can be configured or a small bug of ec, when installed after g ++, related configurations are not automatically loaded.