fatal error: unisted.h: 没有那个文件或目录 compilation terminated.
已经进入文件所在目录,但是编译时却出现如图问题。其主要原因有以下两点:
- 文件名称后面有空格,调用不对
- 你的程序里面包含头文件库中没有或者名称本身就错了。需要检查头文件是否拼写错误
warning: incompatible implicit declaration of built-in function ‘exit’
不兼容问题,添加头文件:#include <stdlib.h>
安装文件时一直“等待安装”
卸载正在安装文件,并重启
sudo apt-get install -f