Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

"LNK2038: mismatch detected for '_MSC_VER'" error when you build MPI applications in Visual Studio


View products that this article applies to.

Symptoms

You receive the following linker errors when you build applications by using the 4.2.4400.0 version of Microsoft Message Passing Interface (MS-MPI):
In Microsoft Visual Studio 2012:
LNK2038: mismatch detected for '_MSC_VER': value '1600' does not match value '1700'.
In Microsoft Visual Studio 2013:
LNK2038: mismatch detected for '_MSC_VER': value '1600' does not match value '1800'.

↑ Back to the top


Cause

The 4.2.4400 version of MS-MPI depends on the Microsoft Visual Studio 2010 C++ runtime library, and this library is incompatible with later Visual Studio C++ runtimes.

↑ Back to the top


Resolution

To resolve the issue, install the update for the MS-MPI Fortran binding libraries.

Note To uninstall the update, you must uninstall the whole MS-MPI redistributable package.

↑ Back to the top


More Information

The following files are affected by this update:
MSMPI_LIB64\msmpifec.lib
MSMPI_LIB64\msmpifmc.lib
MSMPI_LIB32\msmpifec.lib
MSMPI_LIB32\msmpifmc.lib
MSMPI_LIB32\msmpifes.lib
MSMPI_LIB32\msmpifms.lib
For more information about HPC Pack 2012 R2 MS-MPI Redistributable Package, visit the following Microsoft website:

↑ Back to the top


Keywords: kb, kbexpertiseadvanced, kbsurveynew, atdownload, kbfix, kbqfe

↑ Back to the top

Article Info
Article ID : 2968637
Revision : 1
Created on : 1/7/2017
Published on : 6/17/2014
Exists online : False
Views : 577