Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
6000e0d
Fix typos in "What's new for C++ in Visual Studio 2022" topic
Rageking8 Jul 12, 2025
613a5b6
Fix undeclared identifier error in "What's new for C++ in Visual Stud…
Rageking8 Jul 12, 2025
154f2c1
Update links for "For more information" tables in "What's new for C++…
Rageking8 Jul 12, 2025
36d9758
Convert C Runtime errors list into a table
Rageking8 Jul 12, 2025
48ade32
Simplify superfluous relative links in "C Runtime errors (Rxxxx)"
Rageking8 Jul 12, 2025
580bc08
Update metadata in "C Runtime errors (Rxxxx)"
Rageking8 Jul 12, 2025
c21763a
Convert BSCMAKE errors and warnings list into a table
Rageking8 Jul 13, 2025
1159835
Simplify superfluous relative links in "BSCMAKE errors and warnings (…
Rageking8 Jul 13, 2025
2e76b3f
Remove space before escape in "BSCMAKE errors and warnings (BKxxxx)"
Rageking8 Jul 13, 2025
b4dcc16
Update metadata in "BSCMAKE errors and warnings (BKxxxx)"
Rageking8 Jul 13, 2025
ea3a4b5
Add blockquotes for error messages in range [C2181, C2200]
Rageking8 Jul 18, 2025
cfb1f12
Add "Remarks" and "Example" headings for error references in range [C…
Rageking8 Jul 18, 2025
8364bf9
Replace term "sample" with "example" for error references in range [C…
Rageking8 Jul 18, 2025
5917d34
Update metadata for error references in range [C2181, C2200]
Rageking8 Jul 18, 2025
1d620f5
Merge pull request #5556 from Rageking8/structure-error-references-in…
Court72 Aug 15, 2025
7797962
Merge pull request #5535 from Rageking8/convert-bscmake-errors-and-wa…
Court72 Aug 15, 2025
8885b8b
Merge pull request #5530 from Rageking8/convert-c-runtime-errors-list…
Court72 Aug 15, 2025
4167c4c
Merge pull request #5529 from Rageking8/update-what-s-new-for-cpp-202…
Court72 Aug 15, 2025
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
13 changes: 8 additions & 5 deletions docs/error-messages/compiler-errors-1/compiler-error-c2181.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
description: "Learn more about: Compiler Error C2181"
title: "Compiler Error C2181"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C2181"
ms.date: 11/04/2016
f1_keywords: ["C2181"]
helpviewer_keywords: ["C2181"]
ms.assetid: d52b2fe4-566a-40a9-b8e2-8dce1f287668
---
# Compiler Error C2181

illegal else without matching if
> illegal else without matching if

## Remarks

Each **`else`** must have a matching **`if`**.

The following sample generates C2181:
## Example

The following example generates C2181:

```cpp
// C2181.cpp
Expand Down
13 changes: 8 additions & 5 deletions docs/error-messages/compiler-errors-1/compiler-error-c2182.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
description: "Learn more about: Compiler Error C2182"
title: "Compiler Error C2182"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C2182"
ms.date: 11/04/2016
f1_keywords: ["C2182"]
helpviewer_keywords: ["C2182"]
ms.assetid: dfd8d47d-9606-496e-bd96-4bf41ba1f857
---
# Compiler Error C2182

'identifier' : illegal use of type 'void'
> 'identifier' : illegal use of type 'void'

## Remarks

A variable is declared type **`void`**.

The following sample generates C2182:
## Example

The following example generates C2182:

```cpp
// C2182.cpp
Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/compiler-error-c2183.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Compiler Error C2183"
title: "Compiler Error C2183"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C2183"
ms.date: 11/04/2016
f1_keywords: ["C2183"]
helpviewer_keywords: ["C2183"]
ms.assetid: 03d2d010-a276-4ac3-820c-159abd8b1222
---
# Compiler Error C2183

syntax error: translation unit is empty
> syntax error: translation unit is empty

## Remarks

Preprocessing produced an empty source file.
13 changes: 8 additions & 5 deletions docs/error-messages/compiler-errors-1/compiler-error-c2184.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
description: "Learn more about: Compiler Error C2184"
title: "Compiler Error C2184"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C2184"
ms.date: 11/04/2016
f1_keywords: ["C2184"]
helpviewer_keywords: ["C2184"]
ms.assetid: 80fc8bff-7d76-4bde-94d2-01d84bb6824a
---
# Compiler Error C2184

'type' : illegal type for __except expression, must be an integral
> 'type' : illegal type for __except expression, must be an integral

## Remarks

A type was used in an [__except](../../c-language/try-except-statement-c.md) statement, but the type is not allowed.

The following sample generates C2184:
## Example

The following example generates C2184:

```cpp
// C2184.cpp
Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/compiler-error-c2185.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Compiler Error C2185"
title: "Compiler Error C2185"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C2185"
ms.date: 11/04/2016
f1_keywords: ["C2185"]
helpviewer_keywords: ["C2185"]
ms.assetid: 74bc9f64-7b4c-4735-ba13-67c43f8c47db
---
# Compiler Error C2185

'identifier' : illegal based allocation
> 'identifier' : illegal based allocation

## Remarks

A register variable or automatic (local) variable is declared **`__based`**. Only global variables can be declared **`__based`**.
13 changes: 8 additions & 5 deletions docs/error-messages/compiler-errors-1/compiler-error-c2186.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
description: "Learn more about: Compiler Error C2186"
title: "Compiler Error C2186"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C2186"
ms.date: 11/04/2016
f1_keywords: ["C2186"]
helpviewer_keywords: ["C2186"]
ms.assetid: 284bfb7e-ab85-4fcb-9864-1ddf7f6c94ae
---
# Compiler Error C2186

'operator' : illegal operand of type 'void'
> 'operator' : illegal operand of type 'void'

## Remarks

The operator has a **`void`** operand.

The following sample generates C2186:
## Example

The following example generates C2186:

```cpp
// C2186.cpp
Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/compiler-errors-1/compiler-error-c2188.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Compiler Error C2188"
title: "Compiler Error C2188"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C2188"
ms.date: 11/04/2016
f1_keywords: ["C2188"]
helpviewer_keywords: ["C2188"]
ms.assetid: 2223147f-e487-4090-acdf-75ba4e1114f6
---
# Compiler Error C2188

'number' : too big for wide character
> 'number' : too big for wide character

## Remarks

The number exceeds the size limit for the wide-character type. Choose a larger type.
13 changes: 8 additions & 5 deletions docs/error-messages/compiler-errors-1/compiler-error-c2190.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
description: "Learn more about: Compiler Error C2190"
title: "Compiler Error C2190"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C2190"
ms.date: 11/04/2016
f1_keywords: ["C2190"]
helpviewer_keywords: ["C2190"]
ms.assetid: 34e15f85-d979-4948-80fc-46c414508a70
---
# Compiler Error C2190

first parameter list longer than second
> first parameter list longer than second

## Remarks

A C function was declared a second time with a shorter parameter list. C does not support overloaded functions.

The following sample generates C2190:
## Example

The following example generates C2190:

```c
// C2190.c
Expand Down
11 changes: 6 additions & 5 deletions docs/error-messages/compiler-errors-1/compiler-error-c2191.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
---
description: "Learn more about: Compiler Error C2191"
title: "Compiler Error C2191"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C2191"
ms.date: 11/04/2016
f1_keywords: ["C2191"]
helpviewer_keywords: ["C2191"]
ms.assetid: 051b8350-e5de-4f51-ab6e-96d32366bcef
---
# Compiler Error C2191

second parameter list longer than first
> second parameter list longer than first

## Remarks

A C function was declared a second time with a longer parameter list. C does not support overloaded functions.

## Example

The following sample generates C2191:
The following example generates C2191:

```c
// C2191.c
Expand Down
13 changes: 8 additions & 5 deletions docs/error-messages/compiler-errors-1/compiler-error-c2192.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
description: "Learn more about: Compiler Error C2192"
title: "Compiler Error C2192"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C2192"
ms.date: 11/04/2016
f1_keywords: ["C2192"]
helpviewer_keywords: ["C2192"]
ms.assetid: a147197e-e72d-4620-939b-f9e08d7c7c12
---
# Compiler Error C2192

parameter 'number' declaration different
> parameter 'number' declaration different

## Remarks

A C function was declared a second time with a different parameter list. C does not support overloaded functions.

The following sample generates C2192:
## Example

The following example generates C2192:

```c
// C2192.c
Expand Down
13 changes: 8 additions & 5 deletions docs/error-messages/compiler-errors-1/compiler-error-c2193.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
description: "Learn more about: Compiler Error C2193"
title: "Compiler Error C2193"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C2193"
ms.date: 11/04/2016
f1_keywords: ["C2193"]
helpviewer_keywords: ["C2193"]
ms.assetid: 9813e853-d581-4f51-bb75-4e242298a844
---
# Compiler Error C2193

'identifier' : already in a segment
> 'identifier' : already in a segment

## Remarks

A function was placed in two different segments using `alloc_text` and `code_seg` pragmas.

The following sample generates C2193:
## Example

The following example generates C2193:

```cpp
// C2193.cpp
Expand Down
13 changes: 8 additions & 5 deletions docs/error-messages/compiler-errors-1/compiler-error-c2194.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
description: "Learn more about: Compiler Error C2194"
title: "Compiler Error C2194"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C2194"
ms.date: 11/04/2016
f1_keywords: ["C2194"]
helpviewer_keywords: ["C2194"]
ms.assetid: df6e631c-0062-4844-9088-4cc7a0ff879f
---
# Compiler Error C2194

'identifier' : is a text segment
> 'identifier' : is a text segment

## Remarks

The `data_seg` pragma uses a segment name used with `code_seg`.

The following sample generates C2194:
## Example

The following example generates C2194:

```cpp
// C2194.cpp
Expand Down
13 changes: 8 additions & 5 deletions docs/error-messages/compiler-errors-1/compiler-error-c2195.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
description: "Learn more about: Compiler Error C2195"
title: "Compiler Error C2195"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C2195"
ms.date: 11/04/2016
f1_keywords: ["C2195"]
helpviewer_keywords: ["C2195"]
ms.assetid: 9f9f035c-9c51-4173-a8ea-c6f907fc5c63
---
# Compiler Error C2195

'identifier' : is a data segment
> 'identifier' : is a data segment

## Remarks

The `code_seg` pragma uses a segment name used with the `data_seg` pragma.

The following sample generates C2195:
## Example

The following example generates C2195:

```cpp
// C2195.cpp
Expand Down
13 changes: 8 additions & 5 deletions docs/error-messages/compiler-errors-1/compiler-error-c2196.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
description: "Learn more about: Compiler Error C2196"
title: "Compiler Error C2196"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C2196"
ms.date: 11/04/2016
f1_keywords: ["C2196"]
helpviewer_keywords: ["C2196"]
ms.assetid: fd2f6a58-48ce-4e58-96f8-e37720feb8e7
---
# Compiler Error C2196

case value 'value' already used.
> case value 'value' already used.

## Remarks

A switch statement uses the same case value more than once.

The following sample generates C2196:
## Example

The following example generates C2196:

```cpp
// C2196.cpp
Expand Down
13 changes: 8 additions & 5 deletions docs/error-messages/compiler-errors-1/compiler-error-c2197.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
description: "Learn more about: Compiler Error C2197"
title: "Compiler Error C2197"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C2197"
ms.date: 11/04/2016
f1_keywords: ["C2197"]
helpviewer_keywords: ["C2197"]
ms.assetid: 6dd5a6ec-bc80-41b9-a4ac-46f80eaca42d
---
# Compiler Error C2197

'function' : too many arguments for call
> 'function' : too many arguments for call

## Remarks

The compiler detected too many parameters for a call to the function, or an incorrect function declaration.

The following sample generates C2197:
## Example

The following example generates C2197:

```c
// C2197.c
Expand Down
Loading