Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 920 Bytes

fatal-error-c1197.md

File metadata and controls

28 lines (22 loc) · 920 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Fatal Error C1197
Fatal Error C1197
11/04/2016
C1197
C1197
22b801b7-e792-41f6-a461-973c03c69f25

Fatal Error C1197

cannot reference 'mscorlib.dll_1' as the program has already referenced 'mscorlib.dll_2'

The compiler is matched to a version of the common language runtime. However, an attempt was made to reference a version of a common language runtime file from a previous version.

To resolve this error, only reference files from the version of the common language runtime that shipped with the version of Visual C++ you are compiling with.

Example

The following sample generates C1197:

// C1197.cpp
// compile with: /clr /c
// processor: x86
#using "C:\Windows\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll"   // C1197
// try the following line instead
// #using "mscorlib.dll"