背景:
今天重新装了一个eclipse 然后把C/C++插件装上,发现无法运行C/C++程序
问题:
右键里没有run local c/c++ application了,如下图:
解决方法:
- Select Help → Install New Software
- Type this url:http://download.eclipse.org/tools/cdt/releases/indigo(这个路径根据你的版本选择,比如我用的版本是juno就把indigo改成juno)
- Tick the CDT Main Features witch includes c++ sdk
- Restart eclipse done!
结果: