欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

C: 编译错误:fatal error: gnu/stubs-32.h: No such file or directory

程序员文章站 2022-03-08 19:26:57
...

文章目录

错误

[[email protected]-2003 test]# gcc thread.c -l pthread -m32
In file included from /usr/include/features.h:452,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from thread.c:1:
/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
 # include <gnu/stubs-32.h>
           ^~~~~~~~~~~~~~~~
compilation terminated.

原因

没有安装,32位的glibc、glibc-devel。

dnf install glibc.i686
dnf install glibc-devel.i686