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

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

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

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-08 04:11

    Ondrasej is the "most right" here, IMO.
    There are also gui-er ways to do it, without resorting to Xcode. I like TryC.

    Mac OS X includes Developer Tools, a developing environment for making Macintosh applications. However, if someone wants to study programming using C, Xcode is too big and too complicated for beginners, to write a small sample program. TryC is very suitable for beginners.

    enter image description here

    You don't need to launch a huge Xcode application, or type unfamiliar commands in Terminal. Using TryC, you can write, compile and run a C, C++ and Ruby program just like TextEdit. It's only available to compile one source code file but it's enough for trying sample programs.

提交回复
热议问题