linux stdio.h: No such file or directory的解决方法

Linux编译某个程序报错,如下



./src/arith.c:32:10: fatal error: stdio.h: No such file or directory
   32 | #include <stdio.h>
      |          ^~~~~~~~~
compilation terminated.
make: *** [Makefile:185: pgms/arithoh] Error 1

**********************************************
Run: "make all" failed; aborting


解决方法,使用Debian/ubuntu系统。

apt-get install libc6-dev

标签: linux, directory, file, No, stdio

添加新评论