gcc max.o后有问题
gcc -c max.c -o max.o
再gcc max.o hello.c 就出现下面的错误
warning: implicit declaration of function ‘max’; did you mean ‘main’? [-Wimplicit-function-declaration]
int maxNum=max(a1,a2);
gcc -c max.c -o max.o
再gcc max.o hello.c 就出现下面的错误
warning: implicit declaration of function ‘max’; did you mean ‘main’? [-Wimplicit-function-declaration]
int maxNum=max(a1,a2);
2019-09-02
举报