什么情况?

来源:5-13 内部函数与外部函数

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


写回答 关注

1回答

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

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

C语言入门

C语言入门视频教程,带你进入编程世界的必修课-C语言

926210 学习 · 20797 问题

查看课程

相似问题