在32位debian系统上生成64位代码

时间:2013-05-02 11:27:47

标签: linux gcc cross-platform cross-compiling gcc4.7

您能否描述一下如何在32位debian机器上安装 gcc-multilib g ++ - multilib 来生成64位代码?

我在我的32位debian系统上安装了gcc-4.7.2(并且还安装了binutils-2.23)。当我尝试使用-m64标志编译一个简单的hello world程序

# gcc -m64 hello.c

我收到以下错误消息:

"hello.c:1:0: sorry, unimplemented: 64-bit mode not compiled in" .

请告诉我在32位debian系统上生成64位代码的步骤。

1 个答案:

答案 0 :(得分:1)

您需要在configure

中使用此选项重新安装gcc
相关问题