我如何编译我的Mac上.c文件? [英] How do I compile a .c file on my Mac?

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

问题描述

我如何编译我的Mac上.c文件?

How do I compile a .c file on my Mac?

推荐答案

您需要安装苹果开发工具。一旦你做到这一点,最简单的办法是要么使用X code IDE或使用 GCC 在命令行。

You will need to install the Apple Developer Tools. Once you have done that, the easiest thing is to either use the Xcode IDE or use gcc from the command line.

根据苹果的现场,X code(3.2.1)的最新版本只能运行在雪豹(10.6),所以如果你有OS X的早期版本,你需要使用X的旧版本code。您的Mac应该来一个开发工具DVD将包含在您的系统上运行的版本。另外,苹果开发工具的网站仍然有可供下载的旧版本。 X $ C $ç3.1.4应在Leopard上运行(10.5)。

According to Apple's site, the latest version of Xcode (3.2.1) only runs on Snow Leopard (10.6) so if you have an earlier version of OS X you will need to use an older version of Xcode. Your Mac should have come with a Developer Tools DVD which will contain a version that should run on your system. Also, the Apple Developer Tools site still has older versions available for download. Xcode 3.1.4 should run on Leopard (10.5).

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

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