Skip to content

Structure error references in range [C1801, C2000] #5511

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

Merged
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-c1852.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Fatal Error C1852"
title: "Fatal Error C1852"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1852"
ms.date: 11/04/2016
f1_keywords: ["C1852"]
helpviewer_keywords: ["C1852"]
ms.assetid: fa011004-b8d6-46f1-ba80-4785e4ce137f
---
# Fatal Error C1852

'filename' is not a valid precompiled header file
> 'filename' is not a valid precompiled header file

## Remarks

The file is not a precompiled header.

Expand Down
7 changes: 4 additions & 3 deletions docs/error-messages/compiler-errors-1/fatal-error-c1853.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
description: "Learn more about: Fatal Error C1853"
title: "Fatal Error C1853"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1853"
ms.date: 11/04/2016
f1_keywords: ["C1853"]
helpviewer_keywords: ["C1853"]
ms.assetid: ceb9b4a5-92bf-4573-8a9f-3109cc7743ce
---
# Fatal Error C1853

> '*filename*' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)

## Remarks

Possible causes:

- The precompiled header was compiled with a previous compiler version. Try recompiling the header with the current compiler.
Expand Down
7 changes: 4 additions & 3 deletions docs/error-messages/compiler-errors-1/fatal-error-c1854.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
description: "Learn more about: Fatal Error C1854"
title: "Fatal Error C1854"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1854"
ms.date: 11/04/2016
f1_keywords: ["C1854"]
helpviewer_keywords: ["C1854"]
ms.assetid: 8c21a9cc-1737-475c-9e57-8725cd8937c1
---
# Fatal Error C1854

> cannot overwrite information formed during creation of the precompiled header in object file: '*filename*'

## Remarks

You specified the [/Yu (Use Precompiled Header File)](../../build/reference/yu-use-precompiled-header-file.md) option after specifying the [/Yc (Create Precompiled Header File)](../../build/reference/yc-create-precompiled-header-file.md) option for the same file.

To fix this issue, in general, set only one file in your project to be compiled by using the **/Yc** option, and set all other files to compile by using the **/Yu** option. For details on the use of the **/Yc** option, and how to set it in the Visual Studio IDE, see [/Yc (Create Precompiled Header File)](../../build/reference/yc-create-precompiled-header-file.md). For more information on using precompiled headers, see [Creating Precompiled Header Files](../../build/creating-precompiled-header-files.md).
7 changes: 4 additions & 3 deletions docs/error-messages/compiler-errors-1/fatal-error-c1900.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
description: "Learn more about: Fatal Error C1900"
title: "Fatal Error C1900"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1900"
ms.date: 11/04/2016
f1_keywords: ["C1900"]
helpviewer_keywords: ["C1900"]
ms.assetid: 3aaa583b-4c1a-45de-aa34-527d806f2cb5
---
# Fatal Error C1900

> Il mismatch between '*tool1*' version '*number1*' and '*tool2*' version '*number2*'

## Remarks

Tools run in various passes of the compiler do not match. *number1* and *number2* refer to the dates on the files. For example, in pass 1, the compiler front end runs (c1.dll) and in pass 2, the compiler back end runs (c2.dll). The dates on the files must match.

To fix this issue, make sure that all updates have been applied to Visual Studio. If the problem persists, use **Programs and Features** in the Windows Control Panel to repair or reinstall Visual Studio.
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1902.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Fatal Error C1902"
title: "Fatal Error C1902"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1902"
ms.date: 11/04/2016
f1_keywords: ["C1902"]
helpviewer_keywords: ["C1902"]
ms.assetid: 2dc066cc-fcb1-4725-8bcb-9f44dd0905b7
---
# Fatal Error C1902

program database manager mismatch; please check your installation
> program database manager mismatch; please check your installation

## Remarks

A program database file (.pdb) was created using a newer version of mspdb*XXX*.dll than the one the compiler found on your system. This error usually indicates that mspdbsrv.exe or mspdbcore.dll are missing or have different versions than mspdb*XXX*.dll. (The *XXX* placeholder in the mspdb*XXX*.dll file name changes with each product release. For example, in Visual Studio 2015, the file name is mspdb140.dll.)

Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1903.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Fatal Error C1903"
title: "Fatal Error C1903"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1903"
ms.date: 11/04/2016
f1_keywords: ["C1903"]
helpviewer_keywords: ["C1903"]
ms.assetid: 4b4719d6-35d2-4ca5-81ce-903ecd28dfb9
---
# Fatal Error C1903

unable to recover from previous error(s); stopping compilation
> unable to recover from previous error(s); stopping compilation

## Remarks

The compiler found too many errors to continue. Fix the errors and recompile.
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1904.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Fatal Error C1904"
title: "Fatal Error C1904"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1904"
ms.date: 11/04/2016
f1_keywords: ["C1904"]
helpviewer_keywords: ["C1904"]
ms.assetid: 10f66015-146f-41a7-8011-327b29dedec8
---
# Fatal Error C1904

bad provider interaction: 'file'
> bad provider interaction: 'file'

## Remarks

This error indicates the failure of an attribute provider.

Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/fatal-error-c1905.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Fatal Error C1905"
title: "Fatal Error C1905"
ms.date: "11/04/2016"
description: "Learn more about: Fatal Error C1905"
ms.date: 11/04/2016
f1_keywords: ["C1905"]
helpviewer_keywords: ["C1905"]
ms.assetid: fefc6769-477f-45a2-9878-6f0a5f42472c
---
# Fatal Error C1905

Front end and back end not compatible (must target same processor)
> Front end and back end not compatible (must target same processor)

## Remarks

This error occurs when a .obj file is generated by a compiler front end (C1.dll) that targets one processor, such as x86, ARM, or x64, but is being read by a back end (C2.dll) that targets a different processor.

Expand Down