gcc -m32 fatal error: bits/libc-

2020-08-10  本文已影响0人  夙小叶
截屏2020-08-10 11.16.03.png

报错:

$ gcc -m32 -g -fno-stack-protector -z execstack -o buf1 buf1.c 
In file included from buf1.c:2:
/usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: 没有那个文件或目录
   27 | #include <bits/libc-header-start.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

解决:

sudo apt-get install gcc-multilib
上一篇下一篇

猜你喜欢

热点阅读