fatal error: unisted.h: 没有那个文件或目录 compilation terminated.

已经进入文件所在目录,但是编译时却出现如图问题。其主要原因有以下两点:
Linux中使用gcc遇到的一些问题及解决方法

  • 文件名称后面有空格,调用不对
  • 你的程序里面包含头文件库中没有或者名称本身就错了。需要检查头文件是否拼写错误

warning: incompatible implicit declaration of built-in function ‘exit’

不兼容问题,添加头文件:#include <stdlib.h>

相关文章:

  • 2022-02-17
  • 2022-12-23
  • 2021-06-04
  • 2021-11-14
  • 2022-12-23
  • 2021-10-08
  • 2021-05-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案