使用
gcc -m32 myprog.c
应编译32位版本的文件myprog.c
.
不幸的是,我遇到了这个错误:
In file included from /usr/include/stdio.h:27:0,
from myprog.c:1:
/usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or directory
#include <sys/cdefs.h>
我怎样才能解决这个问题?
如果我不使用-m32
,它可以工作,但使用64位指令.