Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Visual C++
C/C++ Build Errors
 Linker Tools Error LNK1112

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual C++ Concepts: Building a C/C++ Program
Linker Tools Error LNK1112

Updated: July 2008

Error Message

module machine type 'type1' conflicts with target machine type 'type2'

The object files specified as input were compiled for different computer types.

For example, if you try to link an object file compiled with /clr and an object file compiled with /clr:pure (machine type CEE), the linker will generate the error LNK1112.

Similarly, if you create one module with the x64 compiler and another module with the x86 compiler, and try to link them, the linker will generate LNK1112.

A possible reason for this error is if you are developing a 64-bit application but have not installed one or both of the Visual C++ 64-bit compilers. In this case, 64-bit configurations will not be available. For more information, see Installing Visual Studio 64-bit Components.

This error can also occur if you change the Active solution configuration in the Configuration Manager and then try to build the project before you delete the intermediate project files. To resolve this error, select Rebuild Solution from the Build menu. You can also select Clean Solution from the Build menu and then build the solution.

Date

History

Reason

July 2008

Added another possible cause for this error.

Content bug fix.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker