質問編集履歴
1
aa
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
[こちら](https://www.sigbus.info/compilerbook#%E6%9C%AC%E7%AB%A0%E3%81%AE%E3%81%BE%E3%81%A8%E3%82%81)を見させていただきながらC言語の理解を深めているところです。「ステップ2:加減算のできるコンパイラの作成」のように少し複雑になる前に「ステップ1:整数1個をコンパイルする言語の作成」でmakeコマンドを試したいと思い、実行したら以下のエラーが出ました。
|
2
2
|
```
|
3
|
-
cc -std=
|
3
|
+
cc -std=c11 -g -static 9cc.c -o 9cc
|
4
4
|
ld: library not found for -lcrt0.o
|
5
5
|
clang: error: linker command failed with exit code 1 (use -v to see invocation)
|
6
6
|
make: *** [9cc] Error 1
|