-1
lambda : main.o
gcc -o lambda main.o
main.o : main.c
gcc -c main.c -o main.o
.PHONY : clean
私が代わりに私の実行可能ファイルの答えとして得るすべては
main.o: In function `fn':
main.c:(.text+0x199): undefined reference to `pow'
main.c:(.text+0x1c6): undefined reference to `pow'
main.c:(.text+0x1eb): undefined reference to `log10'
main.o: In function `fnPrime':
main.c:(.text+0x21d): undefined reference to `pow'
main.c:(.text+0x246): undefined reference to `pow'
main.c:(.text+0x26b): undefined reference to `log10'
main.c:(.text+0x2af): undefined reference to `pow'
collect2: error: ld returned 1 exit status
make: *** [lambda] Error 1
何が間違っているのですか?
あなたのMakefileは問題ありません。あなたのCコードに問題があります。 – tripleee