在Linux 环境下C语言编程,遇到如下警告信息:
[root@BUPTNIC-VOD linuxc]# gcc -c mytool1.c
mytool1.c: In function ‘mytool1_print’:
mytool1.c:5: 警告:隐式声明与内建函数 ‘printf’ 不兼容
 
只需要在源代码中添加两个头文件:
#include <stdio.h>
#include <stdlib.h>