Skip to content

Commit cd10305

Browse files
authored
Add "Remarks" and "Example" headings for error references in range [C1211, C1800]
1 parent c340b6d commit cd10305

22 files changed

+50
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: df0ca70d-ec6e-4400-926a-b877e2599978
1010

1111
> The TypeForwardedTo Custom Attribute is not supported by the version of the runtime installed
1212
13+
## Remarks
14+
1315
C1211 occurs when you have a compiler for the current release, but a common language runtime from a previous release.
1416

1517
Some functionality of the compiler may not work on a previous version of the run time.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 1629c850-e2db-4678-83d8-9bfc85323bc5
1010

1111
> profile database 'pgd_file' is for a different architecture
1212
13+
## Remarks
14+
1315
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.
1416

1517
To resolve this error, only pass a .pgd file that is created with /LTCG:PGINSTRUMENT to /LTCG:PGOPTIMIZE on the same platform.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 6f77d3d4-ba8a-476c-b540-aff19eb4efc4
1010

1111
> program has been edited since profile data was collected
1212
13+
## Remarks
14+
1315
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.
1416

1517
To resolve this error, run /LTCG:PGINSTRUMENT, redo all test runs, and run /LTCG:PGOPTIMIZE. If you cannot run /LTCG:PGINSTRUMENT and redo all test runs, use /LTCG:PGUPDATE instead of /LTCG:PGOPTIMIZE to create the optimized image.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ ms.assetid: 46177997-069e-433a-8e20-93c846d78ffd
1010

1111
> linking assemblies is not supported
1212
13+
## Remarks
14+
1315
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`.
1416

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

19+
## Example
20+
1721
The following sample generates C1308:
1822

1923
```cpp

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: a95363d6-a4f3-45fb-9690-aa7e552093b7
1010

1111
> Mismatched versions of C2.DLL and PGODB\<version>.DLL
1212
13+
## Remarks
14+
1315
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++.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: ac48aa51-8023-42fe-b844-3f8bf228fbef
1010

1111
> profile guided optimizations are not available with OpenMP
1212
13+
## Remarks
14+
1315
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).
1416

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

1721
```cpp

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ ms.assetid: 6590a06c-ce9d-4f17-8f62-c809343143b8
1010

1111
> COFF format cannot statically initialize 'var' with number byte(s) of an address
1212
13+
## Remarks
14+
1315
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.
1416

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

19+
## Example
20+
1721
The following example shows one condition that might cause C1311.
1822

1923
```

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 1aa7cd0e-d45f-4ae7-a85d-015ebb962eaf
1010

1111
> Too many conditional branches in function. Simplify or refactor source code.
1212
13+
## Remarks
14+
1315
The code is too complex for the compiler to process without running out of stack memory. Simplify your code.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 6c7631c8-6fd7-476a-9303-564717fda0f9
1010

1111
> compiler limit : type blocks may not be nested deeper than number levels
1212
13+
## Remarks
14+
1315
Exception handling (or structured exception handling) blocks were nested too deeply. Simplify your code.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 8bb47c23-ac9c-4a33-9ede-4d63ed9d4ba8
1010

1111
> error loading dll 'dll': dll not found
1212
13+
## Remarks
14+
1315
The DLL that supports the attempted operation was not found.
1416

1517
This indicates a problem with your installation and you should reinstall the DLL from your product CD.

0 commit comments

Comments
 (0)