Can't use GCC in OS X Terminal

后端 未结 4 1640
广开言路
广开言路 2021-01-07 00:42

I have installed the developer tools. I can compile code via Xcode and according to the docs /usr/bin/gcc & /usr/bin/cc should point to /usr/bin/gcc-4.0. Neither the sym

4条回答
  •  暖寄归人
    2021-01-07 00:54

    No! Reinstalling is the wrong answer!

    Newer versions of XCode require you to install the command-line versions of the tools separately. In XCode, go to Preferences | Downloads, check the Components tab, and install them from there:

    enter image description here

提交回复
热议问题