Skip to content

Structure error references in range [C1111, C1210] #5504

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1113.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Fatal Error C1113"
title: "Fatal Error C1113"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1113"
ms.date: 11/04/2016
f1_keywords: ["C1113"]
helpviewer_keywords: ["C1113"]
ms.assetid: 1c7c3ce7-2827-4822-9c63-0abc8615ea39
---
# Fatal Error C1113

\#using failed on 'file'
> #using failed on 'file'

## Remarks

Only a file in the Microsoft Intermediate Language (MSIL) format can be passed to a [#using](../../preprocessor/hash-using-directive-cpp.md) directive. The [/clr](../../build/reference/clr-common-language-runtime-compilation.md) compiler option lets you create an MSIL output file. Other Visual Studio languages also produce MSIL files.
4 changes: 3 additions & 1 deletion docs/error-messages/compiler-errors-1/fatal-error-c1116.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: "Learn more about: Fatal Error C1116"
title: "Fatal Error C1116"
description: "Learn more about: Fatal Error C1116"
ms.date: 08/17/2022
f1_keywords: ["C1116"]
helpviewer_keywords: ["C1116"]
Expand All @@ -9,4 +9,6 @@ helpviewer_keywords: ["C1116"]

> unrecoverable error importing module/headerunit '*name*'. Specialization of '*primary-template*' with arguments '*argument-list*'

## Remarks

Error C1116 can happen when the creation of the specialization requires the compiler to parse a token-stream and it encounters an identifier without a matching symbol. To resolve the issue, verify that all template specification arguments are defined and spelled correctly.
4 changes: 3 additions & 1 deletion docs/error-messages/compiler-errors-1/fatal-error-c1117.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: "Learn more about: Fatal Error C1117"
title: "Fatal Error C1117"
description: "Learn more about: Fatal Error C1117"
ms.date: 08/17/2022
f1_keywords: ["C1117"]
helpviewer_keywords: ["C1117"]
Expand All @@ -9,4 +9,6 @@ helpviewer_keywords: ["C1117"]

> unrecoverable error importing module/headerunit '*name*': symbol '*symbol-name*' has already been defined

## Remarks

The compiler found a redefinition of an existing type. To resolve the issue, verify that the symbol has only one definition across modules and translation units.
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1120.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Fatal Error C1120"
title: "Fatal Error C1120"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1120"
ms.date: 11/04/2016
f1_keywords: ["C1120"]
helpviewer_keywords: ["C1120"]
ms.assetid: 34212b64-f4e5-4c55-9acc-6f6b2ab5f1c0
---
# Fatal Error C1120

call to GetProcAddress failed for 'function'
> call to GetProcAddress failed for 'function'

## Remarks

This error indicates Visual C++ needs to be reinstalled.
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1121.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Fatal Error C1121"
title: "Fatal Error C1121"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1121"
ms.date: 11/04/2016
f1_keywords: ["C1121"]
helpviewer_keywords: ["C1121"]
ms.assetid: d16e51c5-4c50-4303-a028-ca60f7a3273c
---
# Fatal Error C1121

call to CryptoAPI failed
> call to CryptoAPI failed

## Remarks

The compiler made a call to the CryptoAPI and the call failed. Reinstall Visual Studio and possibly reinstall the operating system.
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1126.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Fatal Error C1126"
title: "Fatal Error C1126"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1126"
ms.date: 11/04/2016
f1_keywords: ["C1126"]
helpviewer_keywords: ["C1126"]
ms.assetid: f22b26a6-8ad7-47cf-a237-196c8ea60aca
---
# Fatal Error C1126

'identifier' : automatic allocation exceeds size
> 'identifier' : automatic allocation exceeds size

## Remarks

Space allocated for local variables of a function (plus a limited amount of space used by the compiler, such as an extra 20 bytes for swappable functions) exceeds the limit.

Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1128.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Fatal Error C1128"
title: "Fatal Error C1128"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1128"
ms.date: 11/04/2016
f1_keywords: ["C1128"]
helpviewer_keywords: ["C1128"]
ms.assetid: 6f9580fd-ecef-48be-9780-dcf666704279
---
# Fatal Error C1128

number of sections exceeded object file format limit : compile with /bigobj
> number of sections exceeded object file format limit : compile with /bigobj

## Remarks

An .obj file exceeded the number of allowable sections, a COFF object file format limitation.

Expand Down
7 changes: 3 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1189.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
description: "Learn more about: Fatal Error C1189"
title: "Fatal Error C1189"
ms.date: "04/27/2018"
description: "Learn more about: Fatal Error C1189"
ms.date: 04/27/2018
f1_keywords: ["C1189"]
helpviewer_keywords: ["C1189"]
ms.assetid: 2e5c8a78-edd4-411c-b619-558a96be148a
---
# Fatal Error C1189

Expand All @@ -16,7 +15,7 @@ C1189 is generated by the `#error` directive. The developer who codes the direct

## Example

The following sample generates C1189. In the sample, the developer issues a custom error message because the `_WIN32` identifier is not defined:
The following example generates C1189. In the example, the developer issues a custom error message because the `_WIN32` identifier is not defined:

```cpp
// C1189.cpp
Expand Down
13 changes: 8 additions & 5 deletions docs/error-messages/compiler-errors-1/fatal-error-c1190.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
---
description: "Learn more about: Fatal Error C1190"
title: "Fatal Error C1190"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1190"
ms.date: 11/04/2016
f1_keywords: ["C1190"]
helpviewer_keywords: ["C1190"]
ms.assetid: dee2266d-6c40-4f6e-91db-f01e65f8d2bc
---
# Fatal Error C1190

managed targeted code requires a '/clr' option
> managed targeted code requires a '/clr' option

## Remarks

You are using CLR constructs but you did not specify **/clr**.

For more information, see [/clr (Common Language Runtime Compilation)](../../build/reference/clr-common-language-runtime-compilation.md).

The following sample generates C1190:
## Example

The following example generates C1190:

```cpp
// C1190.cpp
Expand Down
13 changes: 8 additions & 5 deletions docs/error-messages/compiler-errors-1/fatal-error-c1191.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
description: "Learn more about: Fatal Error C1191"
title: "Fatal Error C1191"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1191"
ms.date: 11/04/2016
f1_keywords: ["C1191"]
helpviewer_keywords: ["C1191"]
ms.assetid: 2888c6c4-b4e6-449e-8ee0-7917f31086df
---
# Fatal Error C1191

'dll' can only be imported at global scope
> 'dll' can only be imported at global scope

## Remarks

The instruction to import mscorlib.dll into a program that uses /clr programming cannot appear in a namespace or function, but must appear at global scope.

The following sample generates C1191:
## Example

The following example generates C1191:

```cpp
// C1191.cpp
Expand Down
8 changes: 5 additions & 3 deletions docs/error-messages/compiler-errors-1/fatal-error-c1192.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
---
description: "Learn more about: Fatal Error C1192"
title: "Fatal Error C1192"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1192"
ms.date: 11/04/2016
f1_keywords: ["C1192"]
helpviewer_keywords: ["C1192"]
---
# Fatal Error C1192

\#using failed on 'file'
> #using failed on 'file'

## Remarks

Only a file in the Microsoft Intermediate Language (MSIL) format can be passed to a [#using](../../preprocessor/hash-using-directive-cpp.md) directive. The [/clr](../../build/reference/clr-common-language-runtime-compilation.md) compiler option lets you create an MSIL output file. Other Visual Studio languages also produce MSIL files.
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1196.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Fatal Error C1196"
title: "Fatal Error C1196"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1196"
ms.date: 11/04/2016
f1_keywords: ["C1196"]
helpviewer_keywords: ["C1196"]
ms.assetid: 10a79b3f-3423-4ee3-98fa-e9e59cddabb1
---
# Fatal Error C1196

'identifier' : identifier found in type library 'typelib' is not a valid C++ identifier
> 'identifier' : identifier found in type library 'typelib' is not a valid C++ identifier

## Remarks

One of the identifiers in your type library is not a valid C++ identifier. The type library is not available for use with [#import](../../preprocessor/hash-import-directive-cpp.md).
11 changes: 6 additions & 5 deletions docs/error-messages/compiler-errors-1/fatal-error-c1197.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
---
description: "Learn more about: Fatal Error C1197"
title: "Fatal Error C1197"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1197"
ms.date: 11/04/2016
f1_keywords: ["C1197"]
helpviewer_keywords: ["C1197"]
ms.assetid: 22b801b7-e792-41f6-a461-973c03c69f25
---
# Fatal Error C1197

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

## Remarks

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:
The following example generates C1197:

```cpp
// C1197.cpp
Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1201.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Fatal Error C1201"
title: "Fatal Error C1201"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1201"
ms.date: 11/04/2016
f1_keywords: ["C1201"]
helpviewer_keywords: ["C1201"]
ms.assetid: e58b9b9a-2c6f-454d-8719-9773aca765d1
---
# Fatal Error C1201

unable to continue after syntax error in class template definition
> unable to continue after syntax error in class template definition

## Remarks

An unexpected error occurred while parsing a class template definition.

Expand Down
13 changes: 7 additions & 6 deletions docs/error-messages/compiler-errors-1/fatal-error-c1202.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
---
description: "Learn more about: Fatal Error C1202"
title: "Fatal Error C1202"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1202"
ms.date: 11/04/2016
f1_keywords: ["C1202"]
helpviewer_keywords: ["C1202"]
ms.assetid: c859adb8-17a7-4fa1-a1f3-5820b7bf3849
---
# Fatal Error C1202

recursive type or function dependency context too complex
> recursive type or function dependency context too complex

## Remarks

A template definition was recursive or exceeded complexity limits.

## Examples
## Example

The following sample generates C1202.
The following example generates C1202.

```cpp
// C1202.cpp
Expand Down
5 changes: 3 additions & 2 deletions docs/error-messages/compiler-errors-1/fatal-error-c1205.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
description: "Learn more about: Fatal Error C1205"
title: "Fatal Error C1205"
description: "Learn more about: Fatal Error C1205"
ms.date: 08/17/2022
f1_keywords: ["C1205"]
helpviewer_keywords: ["C1205"]
ms.assetid: f855c145-8cf7-4dd1-bb19-257ee38b8382
---
# Fatal Error C1205

> Generics are not supported by the version of the runtime installed

## Remarks

The version of the common language runtime that the compiler is using isn't a version of the runtime supported by the current compiler. For example, the generics feature requires a runtime that is matched to the compiler.

Your path specification may need to be modified.
Expand Down
5 changes: 3 additions & 2 deletions docs/error-messages/compiler-errors-1/fatal-error-c1206.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
description: "Learn more about: Fatal Error C1206"
title: "Fatal Error C1206"
description: "Learn more about: Fatal Error C1206"
ms.date: 08/17/2022
f1_keywords: ["C1206"]
helpviewer_keywords: ["C1206"]
ms.assetid: 2211428f-ad86-4f7b-82eb-f1ba89b0510e
---
# Fatal Error C1206

> Per-appdomain data is not supported by the version of the runtime installed

## Remarks

Some features, such as per application domain data, are only supported by the common language runtime that supports the feature.

C1206 indicates that the latest version of the runtime isn't installed on your computer. Install the common language runtime version that is intended for use with your compiler.
Expand Down
5 changes: 3 additions & 2 deletions docs/error-messages/compiler-errors-1/fatal-error-c1207.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
description: "Learn more about: Fatal Error C1207"
title: "Fatal Error C1207"
description: "Learn more about: Fatal Error C1207"
ms.date: 08/17/2022
f1_keywords: ["C1207"]
helpviewer_keywords: ["C1207"]
ms.assetid: cd31b410-9523-47db-883c-e69a9351ffa2
---
# Fatal Error C1207

> Managed templates not supported by the version of the runtime installed

## Remarks

C1207 occurs when you have a compiler for the current release, but a common language runtime from a previous release.

Some functionality of the compiler may not work on a previous version of the run time.
Expand Down
5 changes: 3 additions & 2 deletions docs/error-messages/compiler-errors-1/fatal-error-c1208.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
description: "Learn more about: Fatal Error C1208"
title: "Fatal Error C1208"
description: "Learn more about: Fatal Error C1208"
ms.date: 08/17/2022
f1_keywords: ["C1208"]
helpviewer_keywords: ["C1208"]
ms.assetid: 4eefd8f0-5c2e-4a11-9e63-293e1139db65
---
# Fatal Error C1208

> Allocating reference classes on the stack is not supported by the version of the runtime installed

## Remarks

C1208 occurs when you have a compiler for the current release, but a common language runtime from a previous release.

Some functionality of the compiler may not work on a previous version of the run time.
Expand Down
Loading