Solution to errors encountered when setting up CDT in Ubuntu

Source: Internet
Author: User
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.

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.