Xcodeをv3からv4.2.1に更新しましたが、正常に動作しますが、C初心者として、Text Wranglerでコーディングし、CLIでgccを使用してコンパイルしたいと思います。
gccは、何らかの理由で「コマンドが見つかりません」を返します(以前は正常に機能していました)
少しグーグルした後、gccが/ usr/binから/Developer/ usr / binに移動されたことがわかりました(そこで見ることができます)。正確なパスを使用するとgccが実行されるようになりましたが、ヘッダーファイルが見つかりません。
my-MacBook-Pro:Desktop user$ /Developer/usr/bin/gcc -o program program.c
program.c:15:19: error: stdio.h: No such file or directory
program.c:16:18: error: math.h: No such file or directory
program.c:17:20: error: stdlib.h: No such file or directory
program.c: In function ‘main’:
program.c:33: warning: incompatible implicit declaration of built-in function ‘malloc’
program.c:35: warning: incompatible implicit declaration of built-in function ‘sqrt’
program.c:44: warning: incompatible implicit declaration of built-in function ‘printf’
program.c:65: warning: incompatible implicit declaration of built-in function ‘printf’
どんな助けでも大歓迎です。