EasyXLS

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

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
Excel Library for C++
full COM+ version to import, export or convert Excel files
Excel Writer for C++
COM+ version to create and export Excel files
Excel Reader for C++
COM+ version to read and import Excel files
Express Excel Writer for C++
limited COM+ version to create and export Excel files in predefined formats
Download EasyXLS™ Excel Library for .NET

File formats:

Office 365
MS Excel 2021 - 2024
MS Excel 2007 - 2019
MS Excel 97 - 2003
XLSXXLSMXLSBXLS
XMLHTMLCSVTXT