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