在 Visual Studio 2008 Express Edition (VS2008EE) 中配置 64 位编译 [英] Configuring 64-bit compilation inside Visual Studio 2008 Express Edition (VS2008EE)

查看:43
本文介绍了在 Visual Studio 2008 Express Edition (VS2008EE) 中配置 64 位编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Visual Studio 2008 Express Edition Service Pack 1(随后安装一些相关的 Windows SDK)、IDE 和命令行下构建 64 位本机 C++ 应用程序.这是在 Windows XP Professional x64 Edition Version 2003 Service Pack 2 机器上.

我知道 Professional 版本可能会提供真正的 VS IDE 集成,但我特别希望在 Visual Studio 2008 Express Edition 中做到这一点.

但是,我在 Visual Studio 2008 Express IDE 中的项目配置中遇到了一些麻烦,希望有人能回答可能是什么问题.关键目标是能够从 IDE 本身中构建 64 位本机应用程序,以及通过执行诸如 vcvarsall.bat 或类似的批处理文件.

这是我目前尝试过的:

我安装了 Visual Studio 2008 Express Editions使用 SP1,安装了 某种类型的 SDK,但我认为这不是包含 64 位编译器的正确版本(但当时不知道).

我构建了一个 hello world Win32 控制台应用程序,并查看了为可执行文件生成的清单文件.我在那个清单文件中找到了x86",它不是 64 位 AFAICT,所以我做了更多的研究.

我发现了什么是缺失"的Visual Studio 2008 速成版?.我看到了一些回复,其中一个是 缺失功能列表 将64 位 Visual C++ 工具"作为缺失功能之一.

但是,在 维基百科条目上,我们看到:><块引用>

将 64 位编译器真正集成到 Visual C++ 2008 Express Edition 是可能的,但仍然很麻烦.9

所以,我尝试了 9 上面给出的链接.该链接实际上是指 如何:配置 Visual C++ 项目以面向 64 位平台.我完成了该页面上的步骤,但到了他们指示您执行以下操作的地步:

<块引用>

点击类型或选择新平台下拉箭头,然后选择 64 位平台.

但是下拉列表中没有条目.

我再次参考了维基百科上的 SDK 页面,特别是 64 位开发部分,其中指出:

<块引用>

最近发布的适用于 Windows Server 2008 和 .NET Framework 3.5 的 Windows SDK 包含更新的 x86、x64 和 Itanium (IA-64) Visual Studio 2008 编译器.

因此,在 Google/MSDN 上搜索适用于 Windows Server 2008 和 .NET Framework 3.5 的 Windows SDK"让我找到了 我应该安装哪个 SDK? 页面.从那个页面我看到 Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 Service Pack 1 于 09 年 8 月发布,因为它是最新的.它的发行说明似乎暗示它至少包含 64 位编译器,但没有明确说明它修补了 Visual Studio IDE 以提供一种选择 x64 目标的方法,这就是我所追求的.

我尝试了 如何:将 Visual C++ 项目配置为面向 64 位平台再次说明,并得到相同的空下拉列表.

所以我当时认为没有安装编译器,所以我尝试执行 vcvarsall.bat amd64 命令,但遇到了 更多VS2008和Windows SDK Server 2008问题.

即使我破解了 vcvarsall.bat 批处理文件以使命令行构建正常工作,IDE 是否仍会因无法配置 Visual Studio 项目以使用 64 进行构建而瘫痪"-位编译器?

谢谢!

背景

解决方案

简短!

适用于 Windows 7 和 .NET Framework 3.5 SP1 的 Windows SDK

http://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/

I am making an attempt at building 64-bit native C++ applications under Visual Studio 2008 Express Edition Service Pack 1 (with some relevant Windows SDK(s) installed afterwards), in the IDE and from the command line. This is on a Windows XP Professional x64 Edition Version 2003 Service Pack 2 machine.

I know that the Professional versions might provide true VS IDE integration, but I'm specifically looking to do this from within Visual Studio 2008 Express Edition.

But, I'm having a bit of trouble in the project configuration in the Visual Studio 2008 Express IDE, and am hoping someone can answer what might be the problem. The key goal is to be able to build 64-bit native apps from within the IDE itself, as well as from the command line by executing batch files like vcvarsall.bat or similar batch file.

Here is what I tried so far:

I installed Visual Studio 2008 Express Editions with SP1, which installed some type of SDK, but I believe not the right one containing 64-bit compilers (but didn't know it at the time).

I built a hello world Win32 Console app, and looked in the manifest file that was generated for the executable. I found "x86" in that manifest file, which is not 64-bit AFAICT, so I did more research.

I found What is "missing" in the Visual Studio 2008 Express Editions?. I saw some replies, one of which was has a list of missing features which has "64-bit Visual C++ Tools" as one of those missing features.

But, on the wikipedia entry we see:

True integration of 64bit compilers to the Visual C++ 2008 Express Edition is possible, but remains cumbersome. 9

So, I tried the instructions in that 9 link given above. That link actually refers to How to: Configure Visual C++ Projects to Target 64-Bit Platforms. I walked through the steps on that page, but got to the point where they instruct you to do the following:

Click the Type or select the new platform drop-down arrow, and then select a 64-bit platform.

But there are no entries in the drop down.

I referred again to the SDK page on Wikipedia, specifically the 64-bit development section, which states:

The most recently released Windows SDK for Windows Server 2008 and .NET Framework 3.5 contains the updated x86, x64 and Itanium (IA-64) Visual Studio 2008 compilers.

So Googling/MSDN'ing around a bit for "Windows SDK for Windows Server 2008 and .NET Framework 3.5" landed me at the Which SDK do I install? page. From that page I see Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 Service Pack 1 released on Aug-09 since it is the most recent one. Its release notes seemed to imply that it contained 64-bit compilers at least, but didn't explicitly state that it patched the Visual Studio IDE to provide a way to select x64 targets, and that is what I'm after.

I tried the How to: Configure Visual C++ Projects to Target 64-Bit Platforms instructions again, and got the same empty drop-down list.

So I thought then that the compilers aren't installed, so I tried executing the vcvarsall.bat amd64 command, and ran into the bug described at More VS2008 and Windows SDK Server 2008 problems.

Even if I hack the vcvarsall.bat batch file to get command-line builds working, will the IDE still be "crippled" by not being able to configure Visual Studio projects to build using the 64-bit compiler?

Thanks!

bg

解决方案

Short!

Windows SDK for Windows 7 and .NET Framework 3.5 SP1

AND

http://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/

这篇关于在 Visual Studio 2008 Express Edition (VS2008EE) 中配置 64 位编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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