输入和报错
giantbranch@ubuntu:~/test$ gcc a.c -m32
In file included from /usr/include/stdio.h:27:0,
from a.c:1:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory
compilation terminated.
网上查到的原因和解决办法
原因
因为使用了-32指令,我的服务器是64位的,无法直接编译执行32位机器指令
解决办法
sudo apt install libc6-dev-i386
我运行的结果
把提示no longer required 的packages按指示删掉就行了