Linker Tools Error LNK1112

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.

See Also

Other Resources

Linker Tools Errors and Warnings