Ubuntu Eclipse CDT related operations

Source: Internet
Author: User

1. Add Elipse CDT to the left program launch bar

Enter under/usr/share/applications

sudo gedit eclipse.desktop, then enter

[Desktop Entry]
version=1.0
Name=eclipse
Exec=/home/ck/eclipse/eclipse
Terminal=false
icon=/home/ck/eclipse/notice.xpm
Type=application
Categories=development

Save, sudo chmod 777 eclipse.desktop, all right words will see the Eclipse icon under this folder

Drag the icon to the left of the program launch bar to

Problem

1) There may be spaces on the path of Exec and Icon, which need to be wrapped up with "". Sometimes the use of "" or there will be problems, it will be more than a few times, on my machine, the path has a space does not seem to be a problem

2. The Eclipse CDT code completion problem

Unable to prompt function because headers is not found

Add two variables into Windows, Preferences, c/C + +, Build, environment

Cplus_include_path:/usr/include/c++/4.8(my gcc version, my own GCC version can be viewed under the/usr/include/c++ folder)
C_include_path:/usr/include

Even so, I found myself unable to use the code hints in c++11, such as unordered_map, without a hint at all.

I remember when I used to wear the CDT, it was still possible, and probably the reason for UBUNTU 14.04.

3. Configuration using the C++11 feature under Eclipse

Right-click Project, select Properties, c/C + + Build, Settings, GCC C + + Compiler, Miscellaneous, add-std=c++11 under other flag

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.