declaration of function max()
hello.c:8:16: warning: implicit declaration of function ‘max’ [-Wimplicit-function-declaration] ? int maxNum = max(a1, a2); ? ? ? ? ? ? ? ?^ 如何解決? 上一節(jié)課也會這樣,只有在#include "main.c" 才能gcc hello.c
hello.c:8:16: warning: implicit declaration of function ‘max’ [-Wimplicit-function-declaration] ? int maxNum = max(a1, a2); ? ? ? ? ? ? ? ?^ 如何解決? 上一節(jié)課也會這樣,只有在#include "main.c" 才能gcc hello.c
2016-09-06
舉報(bào)
2016-09-06
這只是一個warning啊,應(yīng)該是能編譯出結(jié)果的,我的也有警告信息,但是我沒管它。如果你不喜歡出warning信息的話,就加上include吧。