Skip to content

Commit 55ddc9a

Browse files
authored
Add "Remarks" and "Example" headings for error references in range [C1111, C1210]
1 parent 4804f2d commit 55ddc9a

20 files changed

+45
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 1c7c3ce7-2827-4822-9c63-0abc8615ea39
1010

1111
> #using failed on 'file'
1212
13+
## Remarks
14+
1315
Only a file in the Microsoft Intermediate Language (MSIL) format can be passed to a [#using](../../preprocessor/hash-using-directive-cpp.md) directive. The [/clr](../../build/reference/clr-common-language-runtime-compilation.md) compiler option lets you create an MSIL output file. Other Visual Studio languages also produce MSIL files.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ helpviewer_keywords: ["C1116"]
99

1010
> unrecoverable error importing module/headerunit '*name*'. Specialization of '*primary-template*' with arguments '*argument-list*'
1111
12+
## Remarks
13+
1214
Error C1116 can happen when the creation of the specialization requires the compiler to parse a token-stream and it encounters an identifier without a matching symbol. To resolve the issue, verify that all template specification arguments are defined and spelled correctly.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ helpviewer_keywords: ["C1117"]
99

1010
> unrecoverable error importing module/headerunit '*name*': symbol '*symbol-name*' has already been defined
1111
12+
## Remarks
13+
1214
The compiler found a redefinition of an existing type. To resolve the issue, verify that the symbol has only one definition across modules and translation units.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 34212b64-f4e5-4c55-9acc-6f6b2ab5f1c0
1010

1111
> call to GetProcAddress failed for 'function'
1212
13+
## Remarks
14+
1315
This error indicates Visual C++ needs to be reinstalled.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: d16e51c5-4c50-4303-a028-ca60f7a3273c
1010

1111
> call to CryptoAPI failed
1212
13+
## Remarks
14+
1315
The compiler made a call to the CryptoAPI and the call failed. Reinstall Visual Studio and possibly reinstall the operating system.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: f22b26a6-8ad7-47cf-a237-196c8ea60aca
1010

1111
> 'identifier' : automatic allocation exceeds size
1212
13+
## Remarks
14+
1315
Space allocated for local variables of a function (plus a limited amount of space used by the compiler, such as an extra 20 bytes for swappable functions) exceeds the limit.
1416

1517
To correct this error, use `malloc` or **`new`** to allocate large amounts of data.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 6f9580fd-ecef-48be-9780-dcf666704279
1010

1111
> number of sections exceeded object file format limit : compile with /bigobj
1212
13+
## Remarks
14+
1315
An .obj file exceeded the number of allowable sections, a COFF object file format limitation.
1416

1517
Reaching this section limitation can be the result of using [/Gy](../../build/reference/gy-enable-function-level-linking.md) and a debug build; **/Gy** causes functions to go into their own COMDAT sections. In a debug build, there is a debug info section for each COMDAT function.

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ ms.assetid: dee2266d-6c40-4f6e-91db-f01e65f8d2bc
1010

1111
> managed targeted code requires a '/clr' option
1212
13+
## Remarks
14+
1315
You are using CLR constructs but you did not specify **/clr**.
1416

1517
For more information, see [/clr (Common Language Runtime Compilation)](../../build/reference/clr-common-language-runtime-compilation.md).
1618

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

1923
```cpp

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: 2888c6c4-b4e6-449e-8ee0-7917f31086df
1010

1111
> 'dll' can only be imported at global scope
1212
13+
## Remarks
14+
1315
The instruction to import mscorlib.dll into a program that uses /clr programming cannot appear in a namespace or function, but must appear at global scope.
1416

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

1721
```cpp

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ helpviewer_keywords: ["C1192"]
99

1010
> #using failed on 'file'
1111
12+
## Remarks
13+
1214
Only a file in the Microsoft Intermediate Language (MSIL) format can be passed to a [#using](../../preprocessor/hash-using-directive-cpp.md) directive. The [/clr](../../build/reference/clr-common-language-runtime-compilation.md) compiler option lets you create an MSIL output file. Other Visual Studio languages also produce MSIL files.

0 commit comments

Comments
 (0)