EasyXLS

Why do I get "Fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'" error in C++

Concept

The following errors might occur at compile when using EasyXLS Excel library in C++:

Fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'

or

Fatal error LNK1112: module machine type 'X64' conflicts with target machine type 'x86'

The error occurs because the target machine and Debug (Release) runtime setting do not match.

Fatal error LNK1112: module machine type 'X64' conflicts with target machine type 'x86'

Go after Debug or Release configuration and select Win32 from combo box on solution platforms.

Visual Studio, Solution Platforms, 32-bit

Fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'

Go after Debug or Release configuration and select x64 from combo box on solution platforms.

Visual Studio, Solution Platforms, 64-bit

If x64 platform is not available, the following directions guide you to set up.

Go after Debug or Release configuration and select Configuration Manager from combo box on solution platforms.

Visual Studio, Solution Platforms, Configuration Manager

Go to Active solution platform and select <New…> from combo box.

Visual Studio, Configuration Manager

Select x64 from platform combo box and hit OK button.

Visual Studio, New Solution Platform


Available for: Professional, Excel Writer, Excel Reader, Express Excel Writer
Go to top

EasyXLS Excel libraries:

.NET
.NET Excel Library
full .NET version to import, export or convert Excel files
.NET Excel Writer
.NET version to create and export Excel files
.NET Excel Reader
.NET version to read and import Excel files
.NET Express Excel Writer
limited .NET version to create and export Excel files in predefined formats
Download EasyXLS™ Excel Library for .NET

File formats:

MS Excel 97 - 2003
MS Excel 2007 - 2010
MS Excel 2013
MS Excel 2016
MS Excel 2019
XLSXXLSMXLSBXLS
XMLHTMLCSVTXT