Can't use GCC in OS X Terminal

后端 未结 4 1649
广开言路
广开言路 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:51

    Did you install the latest Xcode after installing Snow Leopard, or is this the version of Xcode from a previous OS installation?

    On my system with a clean Snow Leopard install the default compiler (and the one symlinked from cc and gcc) is gcc-4.2

    I do have gcc-4.0 too, although it's not the default.

提交回复
热议问题