你如何编译C程序? [英] How do you compile a C program?

查看:127
本文介绍了你如何编译C程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是最新手问题不断,但你如何编译C程序?

This might be the most newbie question ever, but how do you compile a C program?

我已经下载了一个C程序的源代码(ffmpeg的,是precise)。我如何编译呢?

I’ve downloaded the source of a C program (ffmpeg, to be precise). How do I compile it?

推荐答案

对于大多数Unix风格的C程序,咒语是:

For most Unix-style C programs, the incantation is:

./configure
make
sudo make install

这应该已经在安装文件,其中还可能包含更多有用的信息进行记录。

This should already be documented in the INSTALL file, which additionally may contain further useful information.

这篇关于你如何编译C程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆