在64位的ubuntu系统,使用gcc想编译出32位的应用程序,需要使用gcc -m32选项,但是使用gcc -m32选项后,出现:
fatal error: sys/cdefs.h: No such file or directory|
可以使用如下方法解决:
sudo apt-get update
sudo apt-get purge libc6-dev
sudo apt-get install libc6-dev
sudo apt-get install libc6-dev-i386
来源:CSDN
作者:qq_38239288
链接:https://blog.csdn.net/qq_38239288/article/details/103873569