暗装的Ubuntu是64位的想实现32位编译链接需要安装X86的库,为安装前执行gcc -m32 -o x x.c会提示
In file included from /usr/include/stdio.h:27:0,
from push_test.c:12:/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory
可以执行sudo apt-get install libc6-dev-i386语句安装库文件,需要注意ubnutu要联网。