0
오류 :만들기는 : *** [] 내가 메이크 파일을 만들었하고 테스트하기 위해 노력하고 있지만, 메이크업에 오류가 점점 오전 1
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
나는 점점 만들 생각 * 오류 1 의미 그 구성 요소 중 하나가 제대로 컴파일되지 않았지만 컴파일 할 때 오류 메시지가 없었습니다. 문제가 무엇인지 어떻게 알 수 있습니까?
질문과 관련이 없지만 누락 된'# include '를'heap.c'에 추가하는 것이 좋습니다. – NPE