0

我试图弄清楚 Xcode 是否安装正确,因为我在 Mac OS X Mountain Lion 上编译 C 程序时遇到问题。为什么 echo $PATH 的输出与 Python.framework 有任何关系?

Shanes-MacBook-Pro:all_dsc chimpsarehungry$ echo $PATH
    /Library/Frameworks/Python.framework/Versions/Current/bin:/sw/bin:/sw/sbin:/Library/Frameworks/Python.framework/Versions/3.2/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11R6/bin

我开始研究正确安装 Xcode 的问题,因为当我尝试编译 C 程序时出现以下错误。

Shanes-MacBook-Pro:all_dsc chimpsarehungry$ gcc main.c
Undefined symbols for architecture x86_64:
  "_output_res", referenced from:
      _main in cc1YZOoj.o
  "_pred_acc", referenced from:
      _main in cc1YZOoj.o
  "_predict_sequence", referenced from:
      _main in cc1YZOoj.o
  "_read_sequence", referenced from:
      _main in cc1YZOoj.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status

当我输入“make”时,我得到了类似的错误。我对此很陌生。以后我会发布一个关于运行 C 程序和编译的问题。但是现在,我只想解决我得到的这个奇怪的目录。

4

0 回答 0