简体   繁体   English

GCC编译错误:未在64位模式下编译

[英]GCC compiling error: 64-bit mode not compiled in

I have installed gcc(i686-posix-dwarf, Built by MinGW-W64 project) 6.1.0. 我已经安装了gcc(i686-posix-dwarf,由MinGW-W64项目构建)6.1.0。

When I type at the mingw-w64 prompt : gcc --version 当我在mingw-w64提示符下键入时:gcc --version

I've got the message : gcc (i686-posix-dwarf, Built by MinGW-W64 project) 6.1.0 我收到消息:gcc(i686-posix-dwarf,由MinGW-W64项目构建)6.1.0

When I build an object : gcc -Wall -m64 myprogram.c 当我建立一个对象时:gcc -Wall -m64 myprogram.c

I've got the message : sorry, unimplemented: 64-bit mode not compiled in 我收到消息:抱歉,未实现:未在64位模式下编译

Could anybody help me? 有人可以帮我吗? Thanks 谢谢

i686 is a 32-bit processor. i686是32位处理器。 You downloaded the wrong compiler, since you got the one that produces code for a 32-bit processor. 您下载了错误的编译器,因为您获得了为32位处理器生成代码的编译器。 Uninstall it, and look for an x86_64 compiler instead. 卸载它,然后寻找x86_64编译器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM