问答详情
源自:5-13 内部函数与外部函数

什么情况?

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!
**************


提问者:夜9976783 2020-10-20 10:01

个回答

  • 慕用1598760
    2020-10-20 19:54:43

    有警告(就是有warning) 但警告不等于错