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

后端 未结 7 1261
忘掉有多难
忘掉有多难 2020-12-08 03:52

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

7条回答
  •  天命终不由人
    2020-12-08 04:18

    You can use gcc, in Terminal, by doing gcc -c tat.c -o tst

    however, it doesn't come installed by default. You have to install the XCode package from tour install disc or download from http://developer.apple.com

    Here is where to download past developer tools from, which includes XCode 3.1, 3.0, 2.5 ...

    http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wo/5.1.17.2.1.3.3.1.0.1.1.0.3.3.3.3.1

提交回复
热议问题