Skip to content

Structure error references in range [C1211, C1800] #5507

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
5 changes: 3 additions & 2 deletions docs/error-messages/compiler-errors-1/fatal-error-c1211.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
description: "Learn more about: Fatal Error C1211"
title: "Fatal Error C1211"
description: "Learn more about: Fatal Error C1211"
ms.date: 08/17/2022
f1_keywords: ["C1211"]
helpviewer_keywords: ["C1211"]
ms.assetid: df0ca70d-ec6e-4400-926a-b877e2599978
---
# Fatal Error C1211

> The TypeForwardedTo Custom Attribute is not supported by the version of the runtime installed

## Remarks

C1211 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
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1305.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Fatal Error C1305"
title: "Fatal Error C1305"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1305"
ms.date: 11/04/2016
f1_keywords: ["C1305"]
helpviewer_keywords: ["C1305"]
ms.assetid: 1629c850-e2db-4678-83d8-9bfc85323bc5
---
# Fatal Error C1305

profile database 'pgd_file' is for a different architecture
> profile database 'pgd_file' is for a different architecture

## Remarks

A .pgd file that was generated from the /LTCG:PGINSTRUMENT operation for another platform was passed to [/LTCG:PGOPTIMIZE](../../build/reference/ltcg-link-time-code-generation.md) . [Profile-guided optimizations](../../build/profile-guided-optimizations.md) are available for x86 and x64 platforms. However, a .pgd file generated with a /LTCG:PGINSTRUMENT operation for one platform is not valid as input to a /LTCG:PGOPTIMIZE for a different platform.

Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1307.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Fatal Error C1307"
title: "Fatal Error C1307"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1307"
ms.date: 11/04/2016
f1_keywords: ["C1307"]
helpviewer_keywords: ["C1307"]
ms.assetid: 6f77d3d4-ba8a-476c-b540-aff19eb4efc4
---
# Fatal Error C1307

program has been edited since profile data was collected
> program has been edited since profile data was collected

## Remarks

When using [/LTCG:PGOPTIMIZE](../../build/reference/ltcg-link-time-code-generation.md), the linker detected an input module that was recompiled after /LTCG:PGINSTRUMENT and that the module was changed to the point where existing profile data is no longer relevant. For example, if the call graph changed in the recompiled module, the compiler will generate C1307.

Expand Down
13 changes: 8 additions & 5 deletions docs/error-messages/compiler-errors-1/fatal-error-c1308.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
---
description: "Learn more about: Fatal Error C1308"
title: "Fatal Error C1308"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1308"
ms.date: 11/04/2016
f1_keywords: ["C1308"]
helpviewer_keywords: ["C1308"]
ms.assetid: 46177997-069e-433a-8e20-93c846d78ffd
---
# Fatal Error C1308

linking assemblies is not supported
> linking assemblies is not supported

## Remarks

A .netmodule is allowed as input to the linker, but an assembly is not. This error can be generated when an attempt is made to link an assembly compiled with `/clr:safe`.

For more information, see [.netmodule Files as Linker Input](../../build/reference/netmodule-files-as-linker-input.md).

The following sample generates C1308:
## Example

The following example generates C1308:

```cpp
// C1308.cpp
Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1309.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Fatal Error C1309"
title: "Fatal Error C1309"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1309"
ms.date: 11/04/2016
f1_keywords: ["C1309"]
helpviewer_keywords: ["C1309"]
ms.assetid: a95363d6-a4f3-45fb-9690-aa7e552093b7
---
# Fatal Error C1309

Mismatched versions of C2.DLL and PGODB\<version>.DLL
> Mismatched versions of C2.DLL and PGODB\<version>.DLL

## Remarks

The toolset you are using to build and use [Profile-Guided Optimizations](../../build/profile-guided-optimizations.md) contains mismatched components. If you cannot manually resolve this error, reinstall Visual C++.
13 changes: 8 additions & 5 deletions docs/error-messages/compiler-errors-1/fatal-error-c1310.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
description: "Learn more about: Fatal Error C1310"
title: "Fatal Error C1310"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1310"
ms.date: 11/04/2016
f1_keywords: ["C1310"]
helpviewer_keywords: ["C1310"]
ms.assetid: ac48aa51-8023-42fe-b844-3f8bf228fbef
---
# Fatal Error C1310

profile guided optimizations are not available with OpenMP
> profile guided optimizations are not available with OpenMP

## Remarks

You will not be able to link with [/LTCG:PGI](../../build/reference/ltcg-link-time-code-generation.md) any module that was compiled with [/GL](../../build/reference/gl-whole-program-optimization.md).

The following sample generates C1310:
## Example

The following example generates C1310:

```cpp
// C1310.cpp
Expand Down
11 changes: 7 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1311.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
---
description: "Learn more about: Fatal Error C1311"
title: "Fatal Error C1311"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1311"
ms.date: 11/04/2016
f1_keywords: ["C1311"]
helpviewer_keywords: ["C1311"]
ms.assetid: 6590a06c-ce9d-4f17-8f62-c809343143b8
---
# Fatal Error C1311

COFF format cannot statically initialize 'var' with number byte(s) of an address
> COFF format cannot statically initialize 'var' with number byte(s) of an address

## Remarks

An address whose value is not known at compile time cannot be statically assigned to a variable whose type has storage of less than four bytes.

This error can occur on code that is otherwise valid C++.

## Example

The following example shows one condition that might cause C1311.

```
Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1312.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Fatal Error C1312"
title: "Fatal Error C1312"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1312"
ms.date: 11/04/2016
f1_keywords: ["C1312"]
helpviewer_keywords: ["C1312"]
ms.assetid: 1aa7cd0e-d45f-4ae7-a85d-015ebb962eaf
---
# Fatal Error C1312

Too many conditional branches in function. Simplify or refactor source code.
> Too many conditional branches in function. Simplify or refactor source code.

## Remarks

The code is too complex for the compiler to process without running out of stack memory. Simplify your code.
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1313.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Fatal Error C1313"
title: "Fatal Error C1313"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1313"
ms.date: 11/04/2016
f1_keywords: ["C1313"]
helpviewer_keywords: ["C1313"]
ms.assetid: 6c7631c8-6fd7-476a-9303-564717fda0f9
---
# Fatal Error C1313

compiler limit : type blocks may not be nested deeper than number levels
> compiler limit : type blocks may not be nested deeper than number levels

## Remarks

Exception handling (or structured exception handling) blocks were nested too deeply. Simplify your code.
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1350.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Fatal Error C1350"
title: "Fatal Error C1350"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1350"
ms.date: 11/04/2016
f1_keywords: ["C1350"]
helpviewer_keywords: ["C1350"]
ms.assetid: 8bb47c23-ac9c-4a33-9ede-4d63ed9d4ba8
---
# Fatal Error C1350

error loading dll 'dll': dll not found
> error loading dll 'dll': dll not found

## Remarks

The DLL that supports the attempted operation was not found.

Expand Down
7 changes: 4 additions & 3 deletions docs/error-messages/compiler-errors-1/fatal-error-c1351.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
description: "Learn more about: Fatal Error C1351"
title: "Fatal Error C1351"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1351"
ms.date: 11/04/2016
f1_keywords: ["C1351"]
helpviewer_keywords: ["C1351"]
ms.assetid: 1f8502e4-1049-49c7-bbe3-fa101c79021e
---
# Fatal Error C1351

> error loading dll '*dll*': incompatible version

## Remarks

The wrong version of a DLL was found.

This indicates a problem with your installation, and you should reinstall Visual Studio.
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1352.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Fatal Error C1352"
title: "Fatal Error C1352"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1352"
ms.date: 11/04/2016
f1_keywords: ["C1352"]
helpviewer_keywords: ["C1352"]
ms.assetid: d044e8b0-b6ef-4d57-8eb5-6254071be707
---
# Fatal Error C1352

Invalid or corrupt MSIL in function 'function' from module 'file'
> Invalid or corrupt MSIL in function 'function' from module 'file'

## Remarks

A .netmodule was passed to the compiler, but the compiler detected corruption in the file. Ask the person who produced the .netmodule to investigate.

Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1353.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Fatal Error C1353"
title: "Fatal Error C1353"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1353"
ms.date: 11/04/2016
f1_keywords: ["C1353"]
helpviewer_keywords: ["C1353"]
ms.assetid: 37f55b1d-9e7a-4932-a41e-d593190895d3
---
# Fatal Error C1353

metadata operation failed: runtime not installed or version mismatch
> metadata operation failed: runtime not installed or version mismatch

## Remarks

Reinstall your CLR or Visual Studio.
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1382.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Fatal Error C1382"
title: "Fatal Error C1382"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1382"
ms.date: 11/04/2016
f1_keywords: ["C1382"]
helpviewer_keywords: ["C1382"]
ms.assetid: 7a100f8c-3179-4927-a2f1-98de4c753850
---
# Fatal Error C1382

the PCH file 'file' has been rebuilt since 'obj' was generated. Please rebuild this object
> the PCH file 'file' has been rebuilt since 'obj' was generated. Please rebuild this object

## Remarks

When using [/LTCG](../../build/reference/ltcg-link-time-code-generation.md), the compiler detected a .pch file that is newer than a CIL .obj that points to it. The information in the CIL .obj file is out of date. Rebuild the object.

Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1383.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Fatal Error C1383"
title: "Fatal Error C1383"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1383"
ms.date: 11/04/2016
f1_keywords: ["C1383"]
helpviewer_keywords: ["C1383"]
ms.assetid: ca224d14-d687-4fd6-80c2-8b82f28924ea
---
# Fatal Error C1383

compiler option /GL is incompatible with the installed version of common language runtime
> compiler option /GL is incompatible with the installed version of common language runtime

## Remarks

C1383 occurs when you are using a previous version of the common language runtime with a newer compiler, and when you compile with **/clr** and **/GL.**

Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1506.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Fatal Error C1506"
title: "Fatal Error C1506"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1506"
ms.date: 11/04/2016
f1_keywords: ["C1506"]
helpviewer_keywords: ["C1506"]
ms.assetid: c73d5702-c898-4a32-b0fa-a118601a1e14
---
# Fatal Error C1506

unrecoverable block scoping error
> unrecoverable block scoping error

## Remarks

The block was too large to compile.

Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1508.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Fatal Error C1508"
title: "Fatal Error C1508"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1508"
ms.date: 11/04/2016
f1_keywords: ["C1508"]
helpviewer_keywords: ["C1508"]
ms.assetid: 1112c17d-d60f-470d-b886-fd1a9556c0ea
---
# Fatal Error C1508

compiler limit : 'function' : more than 65535 argument bytes
> compiler limit : 'function' : more than 65535 argument bytes

## Remarks

The formal parameters to the function exceed the limit of 65535 bytes.
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1509.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Fatal Error C1509"
title: "Fatal Error C1509"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1509"
ms.date: 11/04/2016
f1_keywords: ["C1509"]
helpviewer_keywords: ["C1509"]
ms.assetid: 40dd100d-c6ba-451c-bd26-2c99ec1c36d6
---
# Fatal Error C1509

compiler limit : too many exception handler states in function 'function'. simplify function
> compiler limit : too many exception handler states in function 'function'. simplify function

## Remarks

The code exceeds an internal limit on exception handler states (32,768 states).

Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1510.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Fatal Error C1510"
title: "Fatal Error C1510"
ms.date: "04/11/2017"
description: "Learn more about: Fatal Error C1510"
ms.date: 04/11/2017
f1_keywords: ["C1510"]
helpviewer_keywords: ["C1510"]
ms.assetid: 150c827f-9514-41a9-8d7e-82f820749bcb
---
# Fatal Error C1510

Cannot open language resource clui.dll
> Cannot open language resource clui.dll

## Remarks

The compiler can't load the language resource DLL.

Expand Down
Loading