Skip to content

Commit 7464a25

Browse files
authored
Add "Remarks" and "Example" headings for error references in range [C1021, C1050]
1 parent c34f670 commit 7464a25

12 files changed

+28
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: e23171f4-ca6b-40c0-a913-a2edc6fa3766
1010

1111
> invalid preprocessor command 'string'
1212
13+
## Remarks
14+
1315
`string` is not a valid [preprocessor directive](../../preprocessor/preprocessor-directives.md). To resolve the error, use a valid preprocessor name for `string`.
1416

17+
## Example
18+
1519
The following sample generates C1021:
1620

1721
```cpp

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: edada720-dc73-49bc-bd93-a7945a316312
1010

1111
> expected #endif
1212
13+
## Remarks
14+
1315
An `#if`, `#ifdef`, or `#ifndef` directive has no matching `#endif` directive. Be sure each `#if`, `#ifdef`, or `#ifndef` has a matching `#endif`.
1416

17+
## Example
18+
1519
The following sample generates C1022:
1620

1721
```cpp

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 727b4070-7474-420b-ab11-6530f96c794f
1010

1111
> 'file' : unexpected error with pch, try rebuilding the pch
1212
13+
## Remarks
14+
1315
C1023 could be caused by one of several problems, the solution to which is a rebuild of the precompiled header file.
1416

1517
C1023 may be caused if you attempt to use a precompiled header file on a machine other than the one on which it was built.

docs/error-messages/compiler-errors-1/fatal-error-c1025-c1115.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 89bb9d40-673a-44aa-a9f4-b42c07b49d44
1010

1111
> parser stack overflow, program too complex
1212
13+
## Remarks
14+
1315
The space required to parse the program caused a compiler stack overflow.
1416

1517
Decrease the complexity of expressions by:

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 09976c03-8450-4cf7-8b43-1b91c2c2b9f9
1010

1111
> cannot open program database pdb
1212
13+
## Remarks
14+
1315
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.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 28cdccee-4377-4823-a4d8-89ca7229a83e
1010

1111
> expression too complex; simplify expression
1212
13+
## Remarks
14+
1315
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 79103bca-ccfb-42e7-aef9-9b90c15b162f
1010

1111
> cannot open object file filename
1212
13+
## Remarks
14+
1315
The object file specified by [/Fo](../../build/reference/fo-object-file-name.md) cannot be opened.
1416

1517
### To fix by checking the following possible causes

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 560dccb8-5b45-46f0-9412-caa4a6172aef
1010

1111
> compiler limit : function : control flow state too complex; simplify function
1212
13+
## Remarks
14+
1315
The function has more control-flow states than the compiler can handle. Simplify control flow or split the function into smaller functions.
1416

1517
This error is obsolete in Visual Studio 2022 and later versions.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 766c2f89-4ecd-4281-adaa-14b270cc0829
1010

1111
> compiler limit : linkage specifications nested too deeply
1212
13+
## Remarks
14+
1315
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)