Thread: Visual Studio 2010 x64 compilation

  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    25

    Visual Studio 2010 x64 compilation

    Hi, I'm trying to compile a project of mine into x64. I'm on Windows 7 64, but apparently I needed to install the Windows SDK to be able to compile for x64 - I made sure x64 support was enabled during the installation.

    Either way, it is not working. First I got a link error saying that it could not find kernel32.lib - I fixed this by changing "Project Properties -> VC++ Directories -> Library Directories" into C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\x64

    Not I'm getting the error:
    Code:
    1>------ Build started: Project: test, Configuration: Release x64 ------
    1>LINK : fatal error LNK1104: cannot open file 'msvcprt.lib'
    So, how do I compile for x64?

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    It should be as simple as switching a switch. I don't know what you did.
    In your configuration combobox, select to manage them, and then in the box for Win32, select to create a new and select target platform x64. Copy settings from Win32 and away you go.
    Now you can compile for x64. You don't need the WinSDK. Everything needed should be installed with VS.

    Just note that Edit and continue doesn't work x64 for some idiotic M$ reason. I hate them. And it's the reason I'm probably going to continue writing x86 programs for the time being.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. LDAP Query
    By Travoiz in forum C++ Programming
    Replies: 0
    Last Post: 08-13-2009, 02:58 PM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  3. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  4. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM