Makefile hello.out : hello.c gcc -o hello.out hello.c (警告)没有声明 warning: implicit declaration of function ‘xxx’ hello.c #include <stdio.h>#include <stdlib.h> int main(int argc, char *argv[]) { printf("hello\n"); add(); return EXIT_SUCCESS; } int add() { } $ make gcc -o hello.out hello.c hello.c: In function ‘main’: hello.c:8:5: warning: implicit declaration of function ‘ad……
阅读全文