這是什么鬼?
運行成功 hello.c: In function 'main': hello.c:8:5: warning: implicit declaration of function 'say' [-Wimplicit-function-declaration] ? ? say(); ? ? ^~~ test.c: In function 'say': test.c:3:5: warning: implicit declaration of function 'printLine' [-Wimplicit-function-declaration] ? ? printLine(); 什么鬼?
2018-05-13
hello.c里面第三行extern void printLine()? ?
test.c里面第二行加
void printLine();
第三行改成static void say()
2018-04-19
2018-04-19
你寫的test.c那個文件沒有定義頭文件,然后有mian函數(shù)的文件里沒有調(diào)用test的頭文件