夜9976783
2020-10-20 10:01
In file included from hello.c:2:0:
test.c: In function 'say':
test.c:3:5: warning: implicit declaration of function 'printLine' [-Wimplicit-function-declaration]
printLine();
^~~~~~~~~
hello.c: At top level:
hello.c:3:13: warning: conflicting types for 'printLine'
extern void printLine () //这里定义的方法对吗?
^~~~~~~~~
In file included from hello.c:2:0:
test.c:3:5: note: previous implicit declaration of 'printLine' was here
printLine();
^~~~~~~~~
test.c: In function 'say':
test.c:3:5: warning: implicit declaration of function 'printLine' [-Wimplicit-function-declaration]
printLine();
^~~~~~~~~
**************
I love imooc
good good study!
day day up!
**************
有警告(就是有warning) 但警告不等于错
C语言入门
926210 学习 · 20797 问题
相似问题