Linux中C编程出现implicit declaration of function ‘x’

函数声明不明确。

原因:没有包含该函数的头文件。

ps:还有可能是函数拼写错误

解决办法:添加头文件include。

查找函数所在头文件:

man xxx

Updated: