您的位置:首页 > 运维架构 > Linux

linux下编辑并编译运行C/C++/python程序

2014-11-09 13:29 369 查看
1,C和C++程序
http://www.2cto.com/kf/201207/140035.html http://blog.chinaunix.net/uid-20620288-id-3217203.html
其中,如果hello.c 程序中含有数学函数,用gcc编译时的格式为:

gcc -Wall hello.c -o hello -lm

如果编写的是C++程序,

只需

vi h2.cpp

编辑完成保存后,用g++编译器编译即可。

2,python程序
http://blog.csdn.net/buaa_shang/article/details/8271391 http://blog.sina.com.cn/s/blog_64e2219d0101bfjw.html
python是解释性的语言,不需要编译
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: