1.安装C/C++开发文档
$ sudo apt-get install manpages-dev //安装
$ mandb -c //更新索引
$ mandb --help //查看mandb帮助信息
$ man fopen //查看fopen函数
2.安装Anjuta IDE
$ sudo apt-get install anjuta //安装jnjuta IDE
$ sudo apt-get install indent intltool //安装依赖包
3.使用Anjuta IDE测试hello world程序
1)打开Anjuta:点击界面中的“Actions”》“Create a new project”》“C++”》“Generic C++”》“Next”》“Next”》“Next”》“Apply”
2)查看源码:点左侧“project”按钮,点击“foobar-cpp”,双击“main.cc”打开它,main() 函数已预先写好了。
3)编译运行:可以看到Anjuta菜单栏上有类似VS的菜单栏,我们按下“F9”编译,再按“F3”就能运行了!(这两个快捷键对应菜单在“生成”菜单下。)
4.nvidia官方开发的Nsight IDE工具(推荐)
//在安装cuda时会默认安装Nsight IDE工具
$ nsight //打开nsight IDE
// 参考:http://blog.youkuaiyun.com/mounty_fsc/article/details/51089864