Skip to content

Commit 1a601e9

Browse files
authored
Add "Remarks" headings for error references in range [LNK1000, LNK1220]
1 parent 6436e1e commit 1a601e9

30 files changed

+60
-2
lines changed

docs/error-messages/tool-errors/linker-tools-error-lnk1000.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 86421b9a-460a-4285-8dce-9b8257d78122
1010

1111
> unknown error; consult documentation for technical support options
1212
13+
## Remarks
14+
1315
Note the circumstances of the error, then try to isolate the problem and create a reproducible test case. For information on how to investigate and report these errors, see [How to report a problem with the Visual C++ toolset or documentation](../../overview/how-to-report-a-problem-with-the-visual-cpp-toolset.md).
1416

1517
You may get this error if you mix standard header files (for example, Windows.h) and your own files. Include a precompiled header, if any, first, then the standard headers, followed by your own header files.

docs/error-messages/tool-errors/linker-tools-error-lnk1103.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: c8e9bc54-6a71-471c-899e-6f98122ee3c4
1010

1111
> debugging information corrupt; recompile module
1212
13+
## Remarks
14+
1315
This error can be caused because the compilation was terminated before a valid object file was created.
1416

1517
Recompile the given object file. If recompiling does not correct the problem, note the circumstances of the error, try to isolate the problem, and create a reproducible test case. Then consult the technical-support help file, or the technical-support section in one of your manuals.

docs/error-messages/tool-errors/linker-tools-error-lnk1104.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 9ca6f929-0efc-4055-8354-3cf5b4e636dc
1010

1111
> cannot open file '*filename*'
1212
13+
## Remarks
14+
1315
This error is reported when the linker fails to open a file, either for reading or for writing. The two most common causes of the issue are:
1416

1517
- your program is already running or is loaded in the debugger, and

docs/error-messages/tool-errors/linker-tools-error-lnk1106.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 528f7e65-04be-4966-b8af-9276837c7cda
1010

1111
> invalid file or disk full: cannot seek to location
1212
13+
## Remarks
14+
1315
The tool could not read or write to `location` in a memory-mapped file.
1416

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

docs/error-messages/tool-errors/linker-tools-error-lnk1107.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ helpviewer_keywords: ["LNK1107"]
99

1010
> invalid or corrupt file: cannot read at location *address*
1111
12-
The tool couldn't read the file. The file may be corrupt, or have an unexpected file type.
13-
1412
## Remarks
1513

14+
The tool couldn't read the file. The file may be corrupt, or have an unexpected file type.
15+
1616
LNK1107 can occur if a file passed to the linker or related tools is corrupt. To resolve this issue, rebuild the file.
1717

1818
LNK1107 can also occur if your build process puts an unexpected file type in the list of files passed to the tool. The linker and related tools expect to work on specific file types. For example, the linker can use object files, library files, compiled resources, and manifests to create an executable. It can't create an executable by using source files or DLLs. To resolve this issue, verify that your build process passes only the expected file types to the tool. For example, pass *`.obj`*, *`.lib`*, and *`.res`* files, not *`.cpp`*, *`.h`*, *`.dll`*, or *`.rc`* files.

docs/error-messages/tool-errors/linker-tools-error-lnk1113.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 269ff166-b143-48e9-bdf7-db6a0db59fe4
1010

1111
> invalid machine type type
1212
13+
## Remarks
14+
1315
The machine type specified in the object header is not valid.
1416

1517
This error can be caused if the file is corrupt. Rebuild the object.

docs/error-messages/tool-errors/linker-tools-error-lnk1120.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 56aa7d36-921f-4daf-b44d-cca0d4fb1b51
1010

1111
> *number* unresolved externals
1212
13+
## Remarks
14+
1315
Error LNK1120 reports the number of [unresolved external symbol](linker-tools-error-lnk2001.md#what-is-an-unresolved-external-symbol) errors in the current link.
1416

1517
Each unresolved external symbol first gets reported by a [LNK2001](linker-tools-error-lnk2001.md) or [LNK2019](linker-tools-error-lnk2019.md) error. The LNK1120 message comes last, and shows the unresolved symbol error count.

docs/error-messages/tool-errors/linker-tools-error-lnk1123.md

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

1010
> failure during conversion to COFF: file invalid or corrupt
1111
12+
## Remarks
13+
1214
Input files must have the Common Object File Format (COFF) format. If an input file is not COFF, the linker automatically tries to convert 32-bit OMF objects to COFF, or runs CVTRES.EXE to convert resource files. This message indicates that the linker could not convert the file. This can also occur when using an incompatible version of CVTRES.EXE from another installation of Visual Studio, the Windows Development Kit, or .NET Framework.
1315

1416
> [!NOTE]

docs/error-messages/tool-errors/linker-tools-error-lnk1127.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 45404700-1420-4f24-97e1-efb7252ffd8f
1010

1111
> library is corrupt
1212
13+
## Remarks
14+
1315
The library file is corrupt. Rebuild the library.

docs/error-messages/tool-errors/linker-tools-error-lnk1136.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 40c6d909-eb3f-4045-a0fc-4caa2f6db506
1010

1111
> invalid or corrupt file
1212
13+
## Remarks
14+
1315
The input file either has a corrupt header or is zero size or abnormally small.
1416

1517
LNK1136 may also be caused if the file was incorrectly specified as an additional dependency.

0 commit comments

Comments
 (0)