如何在(64 位)Windows 上编译 C++ 以生成 64 位 exe? [英] How can I compile c++ on (64bit) windows to make a 64bit exe?

查看:41
本文介绍了如何在(64 位)Windows 上编译 C++ 以生成 64 位 exe?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 code::blocks 附带的 g++ 编译器,我可以编译 32 位程序,但是当我尝试编译为 64 位程序时,它告诉我未实现 64 位,即使我有 64 位操作系统.

Using the g++ compiler that came with code::blocks I can compile 32bit programmes but when I try to compile to a 64bit programme it tells me that 64 bit isn't implemented, even though I have 64bit os.

我如何编译 C++ 来制作一个 64 位的 exe?

How can I compile c++ to make a 64bit exe?

推荐答案

下载 Microsoft Visual C++,并将目标设置为 64 位.

Download Microsoft Visual C++, and set the target to 64-bit.

为什么要让编程变得比它需要的更难?

Why make programming harder than it needs to be?

这篇关于如何在(64 位)Windows 上编译 C++ 以生成 64 位 exe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆