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

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

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

相关标签:
7条回答
  • 2020-12-08 04:25

    Just for the record in modern times,

    for 2017 !

    1 - Just have updated Xcode on your machine as you normally do

    2 - Open terminal and

    $ xcode-select --install
    

    it will perform a short install of a minute or two.

    3 - Launch Xcode. "New" "Project" ... you have to choose "Command line tool"

    Note - confusingly this is under the "macOS" tab.

    Select "C" language on the next screen...

    4- You'll be asked to save the project somewhere on your desktop. The name you give the project here is just the name of the folder that will hold the project. It does not have any importance in the actual software.

    5 - You're golden! You can now enjoy c with Mac and Xcode.

    0 讨论(0)
提交回复
热议问题