设为首页 加入收藏

TOP

Ubuntu7.10下配置C/C++环境
2014-11-23 22:39:18 来源: 作者: 【 】 浏览:8
Tags:Ubuntu7.10 配置 C/C 环境

1.安装IDE编辑软件Anjuta


deb http://anjuta.org ./


sudo apt-get update


sudo apt-get install anjuta automake autogen autoconf


2.安装gcc和build-essential


sudo apt-get install gcc build-essential


3.helloworld


建个testc.c文件,以下代码:


#include


int main()


{


printf("Hello World!\n");


return 0;


}


终端:


$ sudo gcc testc.c -o testc


$ ./testc


显示


Hello World!


4.GTK环境


sudo apt-get install gnome-core-devel


sudo apt-get install libglib2.0-doc libgtk2.0-doc


sudo apt-get install devhelp


sudo apt-get install glade-gnome glade-common glade-doc


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Ubuntu7.10 内核编译体会 下一篇Linux内核的ioctl函数学习

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: