VC ++ 64位构建严重失败 [英] VC++ 64 bit build fails terribly

查看:77
本文介绍了VC ++ 64位构建严重失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在msdn上关注了如何设置64位编译的内容,
但是当我点击build时,它说一切都未定义:confused :,
但是32位版本就可以了.

我现在正在使用32位xp,我应该很快就能在64位操作系统上对此进行测试,
但我仍然需要找出造成这种情况的原因.
在此先谢谢您.

Hi All,

I followed the thing on msdn on how to setup 64bit compiling,
but when I hit build it says that everything is undefined :confused:,
but the 32 bit build goes fine.

I''m using xp 32bit right now I should be able to test this on 64bit OS soon,
but I still need to find out what is causing this.

Thanks in advance.

推荐答案

您需要提供更多信息.您遵循了什么指南,您做了什么更改?

创建64位项目时,只需打开配置管理器并添加一个新的配置x64,并从Win32配置中复制设置即可.然后,为了方便起见,我在预处理器页面上添加了WIN64的定义,因为部分代码经常需要知道它在什么平台上运行.

确保您仍然定义了WIN32,并且在Visual Studio设置中的工具">选项">项目和解决方案">"VC ++目录"下,您的包含路径对于x64平台是正确的,并且已按照Marcus的说明安装了x64编译器.
You need to provide more information. What guide did you follow, and what did you change?

When I create a 64bit project I simply open the configuration manager and add a new configuration x64 with settings copied from the Win32 configuration. Then I add a definition for WIN64 to the preprocessor page for convenience as portions of my code often needs to know what platform it is running on.

Make sure you still have WIN32 defined, and that your include paths are correct for the x64 platform in the Visual Studio settings under Tools>Options>Projects and Solutions>VC++ Directories and that you have the x64 compilers are installed as Marcus mentioned.


我发现此线程可能会对您有所帮助. http://social.msdn.microsoft.com/Forums/zh/netfx64bit/thread/f21450f5-b36d-4ea2-9806-f169aff0388d [
I found this thread that might help you. http://social.msdn.microsoft.com/Forums/en/netfx64bit/thread/f21450f5-b36d-4ea2-9806-f169aff0388d[^]

The gist of the post found at this link is:


Please make sure that x64 bit compilers are installed on your 32-bit machine. Not installed by default.

Goto Add/Remove programs, select Visual Studio, Change, Add/Remove features and add x64 compilers from C++ node. After installing x64 compilers, you should see appropriate options under Platform and shoudl be able to build x64 projects on 32 bit machine.


这篇关于VC ++ 64位构建严重失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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