Linker tools errors and warnings (LNKxxxx)

The linker tools LINK, LIB, DUMPBIN, and EDITBIN share a common executable that generates these errors and warnings. The tools generate warnings of the form LNKxxxx, where xxxx is a four-digit number.

Important

The Visual Studio compilers and build tools can report many kinds of errors and warnings. After an error or warning is found, the build tools may make assumptions about code intent and attempt to continue, so that more issues can be reported at the same time. If the tools make the wrong assumption, later errors or warnings may not apply to your project. When you correct issues in your project, always start with the first error or warning that's reported, and rebuild often. One fix may make many subsequent errors go away.

To get help on a particular diagnostic message in Visual Studio, select it in the Output window and press the F1 key. Visual Studio opens the documentation page for that error, if one exists. You can also use the search tool at the top of the page to find articles about specific errors or warnings. Or, browse the list of errors and warnings by tool and type in the table of contents on this page.

Note

Not every Visual Studio error or warning is documented. In many cases, the diagnostic message provides all of the information that's available. If you landed on this page when you used F1 and you think the error or warning message needs additional explanation, let us know. You can use the feedback buttons on this page to raise a documentation issue on GitHub. If you think the error or warning is wrong, or you've found another problem with the toolset, report a product issue on the Developer Community site. You can also send feedback and enter bugs within the IDE. In Visual Studio, go to the menu bar and choose Help > Send Feedback > Report a Problem, or submit a suggestion by using Help > Send Feedback > Send a Suggestion.

You may find additional assistance for errors and warnings in Microsoft Learn Q&A forums. Or, search for the error or warning number on the Visual Studio C++ Developer Community site. You can also search Stack Overflow to find solutions.

For links to additional help and community resources, see Visual C++ Help and Community.

Linker tools errors

Linker Tools Error LNK1000
Linker Tools Error LNK1103
Linker Tools Error LNK1104
Linker Tools Error LNK1106
Linker Tools Error LNK1107
Linker Tools Error LNK1112
Linker Tools Error LNK1113
Linker Tools Error LNK1120
Linker Tools Error LNK1123
Linker Tools Error LNK1127
Linker Tools Error LNK1136
Linker Tools Error LNK1140
Linker Tools Error LNK1141
Linker Tools Error LNK1143
Linker Tools Error LNK1152
Linker Tools Error LNK1158
Linker Tools Error LNK1164
Linker Tools Error LNK1166
Linker Tools Error LNK1168
Linker Tools Error LNK1169
Linker Tools Error LNK1170
Linker Tools Error LNK1179
Linker Tools Error LNK1181
Linker Tools Error LNK1188
Linker Tools Error LNK1189
Linker Tools Error LNK1196
Linker Tools Error LNK1200
Linker Tools Error LNK1201
Linker Tools Error LNK1211
Linker Tools Error LNK1215
Linker Tools Error LNK1218
Linker Tools Error LNK1221
Linker Tools Error LNK1223
Linker Tools Error LNK1224
Linker Tools Error LNK1237
Linker Tools Error LNK1240
Linker Tools Error LNK1241
Linker Tools Error LNK1245
Linker Tools Error LNK1248
Linker Tools Error LNK1256
Linker Tools Error LNK1264
Linker Tools Error LNK1277
Linker Tools Error LNK1282
Linker Tools Error LNK1287
Linker Tools Error LNK1296
Linker Tools Error LNK1301
Linker Tools Error LNK1302
Linker Tools Error LNK1306
Linker Tools Error LNK1309
Linker Tools Error LNK1312
Linker Tools Error LNK1313
Linker Tools Error LNK1314
Linker Tools Error LNK1318
Linker Tools Error LNK1332
Linker Tools Error LNK1352
Linker Tools Error LNK1561
Linker Tools Error LNK2001
Linker Tools Error LNK2004
Linker Tools Error LNK2005
Linker Tools Error LNK2008
Linker Tools Error LNK2011
Linker Tools Error LNK2013
Linker Tools Error LNK2017
Linker Tools Error LNK2019
Linker Tools Error LNK2020
Linker Tools Error LNK2022
Linker Tools Error LNK2023
Linker Tools Error LNK2026
Linker Tools Error LNK2027
Linker Tools Error LNK2028
Linker Tools Error LNK2031
Linker Tools Error LNK2033
Linker Tools Error LNK2038
Linker Tools Error LNK2039

Linker tools warnings

Linker Tools Warning LNK4001
Linker Tools Warning LNK4002
Linker Tools Warning LNK4006
Linker Tools Warning LNK4010
Linker Tools Warning LNK4014
Linker Tools Warning LNK4020
Linker Tools Warning LNK4022
Linker Tools Warning LNK4039
Linker Tools Warning LNK4044
Linker Tools Warning LNK4049
Linker Tools Warning LNK4065
Linker Tools Warning LNK4070
Linker Tools Warning LNK4071
Linker Tools Warning LNK4073
Linker Tools Warning LNK4075
Linker Tools Warning LNK4076
Linker Tools Warning LNK4078
Linker Tools Warning LNK4086
Linker Tools Warning LNK4092
Linker Tools Warning LNK4096
Linker Tools Warning LNK4098
Linker Tools Warning LNK4099
Linker Tools Warning LNK4102
Linker Tools Warning LNK4104
Linker Tools Warning LNK4105
Linker Tools Warning LNK4194
Linker Tools Warning LNK4197
Linker Tools Warning LNK4199
Linker Tools Warning LNK4200
Linker Tools Warning LNK4204
Linker Tools Warning LNK4205
Linker Tools Warning LNK4206
Linker Tools Warning LNK4210
Linker Tools Warning LNK4216
Linker Tools Warning LNK4217
Linker Tools Warning LNK4219
Linker Tools Warning LNK4220
Linker Tools Warning LNK4221
Linker Tools Warning LNK4222
Linker Tools Warning LNK4224
Linker Tools Warning LNK4227
Linker Tools Warning LNK4229
Linker Tools Warning LNK4237
Linker Tools Warning LNK4247
Linker Tools Warning LNK4248
Linker Tools Warning LNK4253
Linker Tools Warning LNK4254
Linker Tools Warning LNK4286
Linker Tools Warning LNK4306
Linker Tools Warning LNK4307

See also

C/C++ Compiler and build tools errors and warnings