简体   繁体   English

Visual Studio 2008 sp1 vc ++项目可以在32位模式下工作,但不能在64位模式下工作

[英]Visual Studio 2008 sp1 vc++ project works in 32 bit mode, but not 64 bit

I have a project that runs perfectly well under windows 7, x86 installation. 我有一个在Windows 7,x86安装下可以完美运行的项目。 On the same machine, but in a different drive, I've installed windows 7, x64, and visual studio 2008 sp1 on both. 在同一台计算机上,但在不同的驱动器中,我都同时安装了Windows 7,x64和Visual Studio 2008 sp1。

The project compiles and runs under win32. 该项目在win32下编译并运行。 When I try to compile the project under x64, I get nothing, and everything gets 'skipped'. 当我尝试在x64下编译项目时,我什么也没得到,一切都被“跳过”了。 Furthermore, when I try to get the properties of anything under the 64 bit version, the operation fails with an 'unspecified error'. 此外,当我尝试获取64位版本下的任何内容的属性时,该操作将失败,并显示“未指定的错误”。 On the 64 bit side, I can switch to the win32 build target, watch it work, and then try to switch to the x64 bit side, and then clench my teeth in frustration. 在64位方面,我可以切换到win32构建目标,观察它的工作情况,然后尝试切换到x64位,然后使我的牙齿受挫。 If I try to do a batch build for every configuration, again, total failure unless I just do win32 projects. 如果我尝试为每个配置进行批处理构建,那么除非我只执行win32项目,否则总会失败。

I've seen this project work on someone else's machine, so I know that it works in 64 bits, but for some strange reason, this project just doesn't work for me. 我已经看到这个项目可以在其他人的机器上运行,所以我知道它可以在64位上运行,但是由于某些奇怪的原因,这个项目对我来说不起作用。

I've tried to run 我试着跑

devenv /resetskippkgs

as per this suggestion here , but there's no love. 按照这里的建议 ,但是没有爱。

Any help is appreciated... 任何帮助表示赞赏...

EDIT from Pavel's suggestion, I tried to run using 根据Pavel的建议进行编辑,我尝试使用

vcbuild /platform:x64

and I get the error: 我得到错误:

vcbuild.exe : warning VCBLG6001: Project 'project.proj' does not support platform 
'x64', or the platform support DLL for this platform is not installed.

That help? 这种帮助? Does visual studio not automatically Do The Right thing when installed? 安装后,Visual Studio不会自动执行“正确的事情”吗?

The solution! 解决方案! Posted because I lost so much time to this, and I'd hope that someone else does not similarly lose time (otherwise, I'd just delete the question). 张贴是因为我为此浪费了很多时间,并且希望其他人不会同样浪费时间(否则,我只是删除问题)。

Apparently, the visual studio 2008 installer declined to install the x64 compiler tools by default on my machine. 显然,Visual Studio 2008安装程序默认情况下拒绝在我的计算机上安装x64编译器工具。 I don't know if that's because I'm on an AMD machine and there's some question about running on that processor, or just someone made a mistake, or what, but once I checked what had been installed by visual studio, I found the glaring red 'x' indicating that the x64 compiler was not installed. 我不知道这是否是因为我在AMD机器上,并且在该处理器上运行存在一些问题,或者只是有人犯了一个错误,或者是什么,但是当我检查了Visual Studio安装的内容之后,我发现突出的红色“ x”表示未安装x64编译器。 ARM, yes, x64, the processor I'm using, no. ARM,是的,x64,我正在使用的处理器,否。

So, adding that processor option back seems to have restored the universe to its rightful place. 因此,增加该处理器选项似乎已将Universe恢复到其应有的位置。

I was using internet based setup (everything downloaded from internet). 我正在使用基于Internet的设置(所有从Internet下载的内容)。 There is also the same issue here. 这里也有同样的问题。 Everything for x64 seems to be installed but I cannot compile or check properties while I select x64 release or debug solution. x64的所有内容似乎都已安装,但是选择x64版本或调试解决方案时我无法编译或检查属性。

This was because .NET framework 3.5 x64 is not available for Windows XP and it will not install on your Windows XP x64. 这是因为.NET Framework 3.5 x64无法用于Windows XP,并且不会安装在Windows XP x64上。 And apparently you cannot compile any x64 code if you don't have this framework. 如果没有此框架,显然您将无法编译任何x64代码。

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

相关问题 在我的项目中调用64位Dll 32位VC ++ - Call 64 bit Dll in my project 32 bit VC++ Visual Studio 2010 SP1中的64位整数初始化错误 - 64 bit integer initialization error in Visual Studio 2010 SP1 将VC ++解决方案和项目文件从32位转换为64位 - Converting VC++ Solution and Project files from 32 to 64 bit 64位vc ++程序似乎在32位模式下运行 - 64bit vc++ program seems to run under 32bit mode C ++ Visual Studio 2008,将项目从64位迁移到32位 - C++ Visual Studio 2008, moving a project from 64-bit to 32-bit Visual Studio 2008 64位部署项目未按预期部署64位VC90合并模块 - Visual Studio 2008 64 bit Deployment Project does not deploy 64 bit VC90 merge modules as expected VC ++ CLI应用程序32-64位CString问题 - VC++ CLI application 32 - 64 bit CString question Visual Studio 2008 64位中的Hello World /控制台项目 - Hello world/Console Project in Visual Studio 2008 64 bit Intellisense自动完成导致Visual Studio 2005 SP1中的VC ++崩溃 - Intellisense auto-complete is causing VC++ in Visual Studio 2005 SP1 to crash Windows Python C扩展仅适用于我自己的Python构建(使用VC ++ 2008 Express的32位构建) - Windows Python C extension only works with my own Python build (32-bit build using VC++ 2008 Express)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM