Makefile を作成してテストしようとしていますが、make でエラーが発生します。
austins-macbook:work4 staffmember$ make new
rm -f main.o heap.o heap
gcc -Wall -O2 -c -o main.o main.c
gcc -Wall -O2 -c -o heap.o heap.c
heap.c: In function ‘createHeap’:
heap.c:6: warning: implicit declaration of function ‘malloc’
heap.c:6: warning: incompatible implicit declaration of built-in function ‘malloc’
heap.c:8: warning: implicit declaration of function ‘exit’
heap.c:8: warning: incompatible implicit declaration of built-in function ‘exit’
gcc -Wall -O2 -o heap main.o heap.o
austins-macbook:work4 staffmember$ make test
./heap
make: *** [test] Error 1
make * Error 1 が表示されたということは、コンポーネントの 1 つが正しくコンパイルされなかったことを意味していると思いましたが、コンパイルしたときにエラー メッセージは表示されませんでした。問題の内容を確認するにはどうすればよいですか?