Troubleshooting sample building issues on X64, post 5

X64 technologies are based on 64-bit extensions to the industry-standard x86 32-bit architectures from AMD and Intel. x64 processors allow a choice between running 32-bit and 64-bit editions of Microsoft Windows Server, but only Windows Server x64 provides a platform for scalable and high-performing native x64 applications while still supporting most legacy 32-bit applications without emulation on the same system. Learn more about Microsoft’s X64 technology.

Here’s another tip for troubleshooting issues with Windows Vista SDK samples on X64. 

5. Error:  link fails with “fatal error LNK1181: cannot open input file”

Problem:  You might not have all the necessary libraries installed.  These are installed for your CPU architecture only by default during setup. If you did not install libraries for all CPU architectures, some samples with Visual C++ 2005 project files may fail to build for all configurations in the project file.  For example, if a sample has an x86 configuration and no x86 libraries were installed (they won’t be installed by default on an X64 machine), that sample’s x86 configuration will fail to build.

Workaround:  To go back and install those missing libraries, open the Control Panel and click on Add/Remove Programs (Programs and Features on Vista). Select the Microsoft Windows SDK and select Change.  Go back through setup and when presented with the Installation Options screen, expand the Windows Vista Headers and Libraries Node and select the libraries you wish to install (like the X86 libraries). Click Next and continue with the installation of the additional feature.

Windows SDK Setup - Twango

Karin Meier

Windows SDK Samples Program Manager

Comments (1)

  1. Are you having problems building some of the Windows Vista SDK samples on an X64 machine? Me too. That’s

Skip to main content