visual studio 2008 C++ no x64 platform

痞子三分冷 提交于 2019-11-28 08:20:37

If I recall, VS 2008 Pro doesn't install the 64-bit compiler and tools by default. You have to explicitly select them during the installation.

  1. Control Panel -> Uninstall Programs.
  2. Select Visual Studio and click Uninstall/Change.
  3. Wait. Wait some more. Click Next.
  4. Choose Add or Remove Features.
  5. Expand MSVC 2008 -> Language Tools -> Visual C++.
  6. Select X64 Compilers and Tools.

You'll probably need your original installation media.

Once the 64-bit compiler and tools are installed, you should be able to add a 64-bit configuration to your solution.

See "Use Visual Studio to build 64-bit application" for all you need to build x64 apps with Visual Studio 2008.

Visual Studio 2008 only comes with x64 compiler with the Professional editions and higher. You can download the free Windows SDK from MSDN to get the x64 compiler.

If your projects don't have the x64 configuration, just add that configuration via the configuration manager. I don't remember if 2008 created the x64 configuration by default but I suspect not.

I also seem to remember that you can just add the x64 configuration to the solution and it will prompt on whether or not to add it to all of the contained projects but my memory is rusty on that one.

Regardless, once you've got the configurations added, you'll need to modify anything you'd modified before in project settings. Output paths, library dependencies, etc. The New Configuration "Wizard" is pretty dumb.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!