美文网首页
gcc -m32 fatal error: bits/libc-

gcc -m32 fatal error: bits/libc-

作者: 夙小叶 | 来源:发表于2020-08-10 11:20 被阅读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
    

    相关文章

      网友评论

          本文标题:gcc -m32 fatal error: bits/libc-

          本文链接:https://www.haomeiwen.com/subject/txnddktx.html