使用
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位指令。
-m32
标志,程序能够正常编译吗? - Some programmer dude