Linux 编程问题:warning: incompatible implicit declaration of built-in function 学习Linux C编程的时候,编译如下简单代码: 编译成功但是有警告: 网上找原因,是缺少了头文件 加上后警告消失。 警告原因,从英文来看,是说内建函数printf 有不兼容的隐式声明,printf 是gcc内建函数,不加头文件可以编译但是会警告。
[Warning] implicit declaration of function ‘clrscr‘ [-Wimplicit-function-declaration] 1.出现这问题,是因为你的clrscr();缺少头文件。在代码前面加入: 2.还是报错,将clrscr();改为system(“cls”); 如果是Linux系统改为system(“clear”);...