前提・実現したいこと
c言語で書いたコードをコンパイルしたい。
macをモハベにupdateしてからコンパイルできなくなった気がします。
発生している問題・エラーメッセージ
hello.c:1:19: fatal error: stdio.h: No such file or directory compilation terminated.
該当のソースコード
c
1#include<stdio.h> 2int main(void) 3{ 4 printf("Hello, World!!!\n"); 5 return 0; 6} 7
試したこと
Gcc -o hello hello.c
->hello.c:1:19: fatal error: stdio.h: No such file or directory
compilation terminated.
//https://stackoverflow.com/questions/19580758/gcc-fatal-error-stdio-h-no-such-file-or-directory
Xcode-select —install
->xcode-select: error: command line tools are already installed, use "Software Update" to install updates
//https://qiita.com/megu_ma/items/820695ac525030285682
Brew doctor
->Warning: Broken symlinks were found. Remove them with brew prune
:
/usr/local/bin/cmake
//https://qiita.com/unsoluble_sugar/items/acaffa6d0e28c3c24934
brew prune /usr/local/bin/cmake
打ったコマンド
->それに対する結果
次のコマンドを打つのに参考にしたサイト
の順で書いています。
補足情報(FW/ツールのバージョンなど)
MacOS Mojave バージョン10.14
gcc version 5.5.0 (Homebrew GCC 5.5.0_2)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/10/25 01:17
2018/10/25 01:29
退会済みユーザー
2018/10/25 03:31
2018/10/25 03:37
2018/10/25 03:40
退会済みユーザー
2018/10/25 03:46