Skip to content

Commit e220bc0

Browse files
Merge pull request #5483 from Rageking8/structure-error-references-in-range-c1021-c1050
Structure error references in range [C1021, C1050]
2 parents 78076f4 + 200bd7b commit e220bc0

13 files changed

+61
-43
lines changed

docs/error-messages/compiler-errors-1/fatal-error-c1021.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Fatal Error C1021"
32
title: "Fatal Error C1021"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Fatal Error C1021"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C1021"]
66
helpviewer_keywords: ["C1021"]
7-
ms.assetid: e23171f4-ca6b-40c0-a913-a2edc6fa3766
87
---
98
# Fatal Error C1021
109

11-
invalid preprocessor command 'string'
10+
> invalid preprocessor command 'string'
11+
12+
## Remarks
1213

1314
`string` is not a valid [preprocessor directive](../../preprocessor/preprocessor-directives.md). To resolve the error, use a valid preprocessor name for `string`.
1415

15-
The following sample generates C1021:
16+
## Example
17+
18+
The following example generates C1021:
1619

1720
```cpp
1821
// C1021.cpp

docs/error-messages/compiler-errors-1/fatal-error-c1022.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Fatal Error C1022"
32
title: "Fatal Error C1022"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Fatal Error C1022"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C1022"]
66
helpviewer_keywords: ["C1022"]
7-
ms.assetid: edada720-dc73-49bc-bd93-a7945a316312
87
---
98
# Fatal Error C1022
109

11-
expected #endif
10+
> expected #endif
11+
12+
## Remarks
1213

1314
An `#if`, `#ifdef`, or `#ifndef` directive has no matching `#endif` directive. Be sure each `#if`, `#ifdef`, or `#ifndef` has a matching `#endif`.
1415

15-
The following sample generates C1022:
16+
## Example
17+
18+
The following example generates C1022:
1619

1720
```cpp
1821
// C1022.cpp

docs/error-messages/compiler-errors-1/fatal-error-c1023.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
2-
description: "Learn more about: Fatal Error C1023"
32
title: "Fatal Error C1023"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Fatal Error C1023"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C1023"]
66
helpviewer_keywords: ["C1023"]
7-
ms.assetid: 727b4070-7474-420b-ab11-6530f96c794f
87
---
98
# Fatal Error C1023
109

11-
'file' : unexpected error with pch, try rebuilding the pch
10+
> 'file' : unexpected error with pch, try rebuilding the pch
11+
12+
## Remarks
1213

1314
C1023 could be caused by one of several problems, the solution to which is a rebuild of the precompiled header file.
1415

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
description: "Learn more about: Fatal Error C1025, C1115"
32
title: "Fatal Error C1025, C1115"
3+
description: "Learn more about: Fatal Error C1025, C1115"
44
ms.date: 08/17/2022
55
f1_keywords: ["C1025", "C1115"]
66
helpviewer_keywords: ["C1025", "C1115"]
@@ -9,4 +9,6 @@ helpviewer_keywords: ["C1025", "C1115"]
99

1010
> too many nested lambdas
1111
12+
## Remarks
13+
1214
The compiler detected more than an internal limit for nested lambdas in the same scope. The limit is 65,535 in recent versions of Visual Studio. To resolve this issue, reduce the number of nested lambdas in the current scope.

docs/error-messages/compiler-errors-1/fatal-error-c1026.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
2-
description: "Learn more about: Fatal Error C1026"
32
title: "Fatal Error C1026"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Fatal Error C1026"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C1026"]
66
helpviewer_keywords: ["C1026"]
7-
ms.assetid: 89bb9d40-673a-44aa-a9f4-b42c07b49d44
87
---
98
# Fatal Error C1026
109

11-
parser stack overflow, program too complex
10+
> parser stack overflow, program too complex
11+
12+
## Remarks
1213

1314
The space required to parse the program caused a compiler stack overflow.
1415

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
2-
description: "Learn more about: Fatal Error C1033"
32
title: "Fatal Error C1033"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Fatal Error C1033"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C1033"]
66
helpviewer_keywords: ["C1033"]
7-
ms.assetid: 09976c03-8450-4cf7-8b43-1b91c2c2b9f9
87
---
98
# Fatal Error C1033
109

11-
cannot open program database pdb
10+
> cannot open program database pdb
11+
12+
## Remarks
1213

1314
This error can be caused by a disk error, a temporary lock created by an anti-virus program, a previous debugger instance that has not fully shut down, or parallel build mspdbsrv.exe processes that attempt to access the same file, among other possible causes.
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
2-
description: "Learn more about: Fatal Error C1035"
32
title: "Fatal Error C1035"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Fatal Error C1035"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C1035"]
66
helpviewer_keywords: ["C1035"]
7-
ms.assetid: 28cdccee-4377-4823-a4d8-89ca7229a83e
87
---
98
# Fatal Error C1035
109

11-
expression too complex; simplify expression
10+
> expression too complex; simplify expression
11+
12+
## Remarks
1213

1314
The compiler could not generate code for a complex expression. Split the expression into simpler expressions and recompile.

docs/error-messages/compiler-errors-1/fatal-error-c1037.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
---
2-
description: "Learn more about: Fatal Error C1037"
32
title: "Fatal Error C1037"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Fatal Error C1037"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C1037"]
66
helpviewer_keywords: ["C1037"]
7-
ms.assetid: 79103bca-ccfb-42e7-aef9-9b90c15b162f
87
---
98
# Fatal Error C1037
109

11-
cannot open object file filename
10+
> cannot open object file filename
11+
12+
## Remarks
1213

1314
The object file specified by [/Fo](../../build/reference/fo-object-file-name.md) cannot be opened.
1415

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
---
2-
description: "Learn more about: Fatal Error C1038"
32
title: "Fatal Error C1038"
3+
description: "Learn more about: Fatal Error C1038"
44
ms.date: 08/17/2022
55
f1_keywords: ["C1038"]
66
helpviewer_keywords: ["C1038"]
7-
ms.assetid: 560dccb8-5b45-46f0-9412-caa4a6172aef
87
---
98
# Fatal Error C1038
109

1110
> compiler limit : function : control flow state too complex; simplify function
1211
12+
## Remarks
13+
1314
The function has more control-flow states than the compiler can handle. Simplify control flow or split the function into smaller functions.
1415

1516
This error is obsolete in Visual Studio 2022 and later versions.
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
2-
description: "Learn more about: Fatal Error C1045"
32
title: "Fatal Error C1045"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Fatal Error C1045"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C1045"]
66
helpviewer_keywords: ["C1045"]
7-
ms.assetid: 766c2f89-4ecd-4281-adaa-14b270cc0829
87
---
98
# Fatal Error C1045
109

11-
compiler limit : linkage specifications nested too deeply
10+
> compiler limit : linkage specifications nested too deeply
11+
12+
## Remarks
1213

1314
Nested externals exceed the compiler limit. Nested externals are allowed with the external linkage type, such as **`extern`** "C++". Reduce the number of nested externals to resolve the error.

0 commit comments

Comments
 (0)