yesterday, after a day, finally successfully installed eclipse under Linux, so that it can be under Linux like Windows Visual Studio to write programs.
search various methods on the Internet, but no method is complete and feasible, combined with a variety of posts, summed up the following installation steps, has already practiced two computers, absolutely available.
1. Sudo apt-get install openjdk-6-jre-headless
2. Baidu or Google search "Linux+eclipse+c", you can find "eclipse-linuxtools-indigo-sr2-incubation-linux-gtk.tar.gz" This file, unzip it.
3. restart
4. Open Eclipse, add in window->preferences->c/c++->build->environment:
Cplus_include_path/usr/include
C_include_path/usr/include
5. at this time, run a simple program, will prompt "g++ not found", terminal input sudo apt-get install g++, download and install can be resolved
6. Restart your computer
7. New Project Select C++project and select Cross GCC
8. CTRL+F10, select Add line number
[Go]-Ubuntu install eclipse