Skip to content

Commit 4e3dfd9

Browse files
authored
Merge pull request #852 from corob-msft/cr-issue-233
Implement LNK1318 for issue 233
2 parents 283b4d6 + 7f0c509 commit 4e3dfd9

File tree

4 files changed

+60
-0
lines changed

4 files changed

+60
-0
lines changed

docs/error-messages/tool-errors/TOC.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@
155155
## [Linker Tools Error LNK1312](linker-tools-error-lnk1312.md)
156156
## [Linker Tools Error LNK1313](linker-tools-error-lnk1313.md)
157157
## [Linker Tools Error LNK1314](linker-tools-error-lnk1314.md)
158+
## [Linker Tools Error LNK1318](linker-tools-error-lnk1318.md)
158159
## [Linker Tools Error LNK1332](linker-tools-error-lnk1332.md)
159160
## [Linker Tools Error LNK1561](linker-tools-error-lnk1561.md)
160161
## [Linker Tools Error LNK2001](linker-tools-error-lnk2001.md)
@@ -185,6 +186,7 @@
185186
## [Linker Tools Warning LNK4006](linker-tools-warning-lnk4006.md)
186187
## [Linker Tools Warning LNK4010](linker-tools-warning-lnk4010.md)
187188
## [Linker Tools Warning LNK4014](linker-tools-warning-lnk4014.md)
189+
## [Linker Tools Warning LNK4020](linker-tools-warning-lnk4020.md)
188190
## [Linker Tools Warning LNK4022](linker-tools-warning-lnk4022.md)
189191
## [Linker Tools Warning LNK4037](linker-tools-warning-lnk4037.md)
190192
## [Linker Tools Warning LNK4039](linker-tools-warning-lnk4039.md)
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: "Linker Tools Error LNK1318 | Microsoft Docs"
3+
ms.custom: ""
4+
ms.date: "05/29/2018"
5+
ms.technology: ["cpp-diagnostics"]
6+
ms.topic: "error-reference"
7+
f1_keywords: ["LNK1318"]
8+
dev_langs: ["C++"]
9+
helpviewer_keywords: ["LNK1318"]
10+
author: "corob-msft"
11+
ms.author: "corob"
12+
ms.workload: ["cplusplus"]
13+
---
14+
# Linker Tools Error LNK1318
15+
16+
> Unexpected PDB error; *cause* '*details*'
17+
18+
The linker encountered an unexpected error when opening, reading, or writing to a PDB file.
19+
20+
This error message is produced for uncommon issues in PDB files. The *cause* and *details* represent the information available to the linker when the failure occurred. This may not be very useful, as common errors when dealing with PDB files have separate, more informative error messages.
21+
22+
Because the source of the error is uncommon, there is only generic advice available for resolving this issue:
23+
24+
- Perform a clean operation in your build directories, and then do a full build of your solution.
25+
26+
- Reboot your computer, or check for stray or hung mspdbsrv.exe processes and kill them in TaskManager.
27+
28+
- Turn off antivirus checks in your project directories.
29+
30+
- Use the [/Zf](../../build/reference/zf.md) compiler option if using [/MP](../../build/reference/mp-build-with-multiple-processes.md) with MSBuild or another parallel build process.
31+
32+
- Try building by using the 64-bit hosted toolset.
33+
34+
- Serialize linking to mitigate parallel link issues if needed. This error can be caused if mspdbsrv.exe is launched by one instance of link, and is shut down before another instance of link is done using it. The downside to this fix is that your project builds may take considerably longer to complete.

docs/error-messages/tool-errors/linker-tools-errors-and-warnings.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ LINK, LIB, DUMPBIN, and EDITBIN generate these errors and warnings.
121121

122122
[Linker Tools Error LNK1314](../../error-messages/tool-errors/linker-tools-error-lnk1314.md)
123123

124+
[Linker Tools Error LNK1318](../../error-messages/tool-errors/linker-tools-error-lnk1318.md)
125+
124126
[Linker Tools Error LNK1332](../../error-messages/tool-errors/linker-tools-error-lnk1332.md)
125127

126128
[Linker Tools Error LNK1561](../../error-messages/tool-errors/linker-tools-error-lnk1561.md)
@@ -171,6 +173,8 @@ LINK, LIB, DUMPBIN, and EDITBIN generate these errors and warnings.
171173

172174
[Linker Tools Warning LNK4014](../../error-messages/tool-errors/linker-tools-warning-lnk4014.md)
173175

176+
[Linker Tools Warning LNK4020](../../error-messages/tool-errors/linker-tools-warning-lnk4020.md)
177+
174178
[Linker Tools Warning LNK4022](../../error-messages/tool-errors/linker-tools-warning-lnk4022.md)
175179

176180
[Linker Tools Warning LNK4039](../../error-messages/tool-errors/linker-tools-warning-lnk4039.md)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: "Linker Tools Warning LNK4020 | Microsoft Docs"
3+
ms.custom: ""
4+
ms.date: "05/29/2018"
5+
ms.technology: ["cpp-diagnostics"]
6+
ms.topic: "error-reference"
7+
f1_keywords: ["LNK4020"]
8+
dev_langs: ["C++"]
9+
helpviewer_keywords: ["LNK4020"]
10+
author: "corob-msft"
11+
ms.author: "corob"
12+
ms.workload: ["cplusplus"]
13+
---
14+
# Linker Tools Warning LNK4020
15+
16+
> a type record in '*filename*' is corrupted; some symbols and types may not be accessible from the debugger
17+
18+
The PDB file *filename* has a corrupted type record.
19+
20+
This issue is often secondary to other build issues; unless this is the first reported build issue, deal with the other errors and warnings first. If this is the first reported issue, you may need to clean your build directories and rebuild your project. If you use parallel build processes, see if the error persists when you serialize your build.

0 commit comments

Comments
 (0)