MSVC build errors > LNK1120
LNK1120: unresolved externals
fatal error LNK1120: 1 unresolved externals
LNK1120 is a summary: it ends the link and counts the symbols the linker could not resolve. The errors to fix are the LNK2019 and LNK2001 errors listed before it.
Causes and fixes
- LNK2019 errors precede it. Each one names a function used but never defined. See how to fix LNK2019.
- LNK2001 errors precede it. Each one names a static member, a virtual function, or a variable never defined. See how to fix LNK2001.
- The Error List shows only LNK1120. Open the Build output: it lists every unresolved symbol, with the object file that uses it.
Fix LNK1120 with CppPilot
CppPilot reads the error, your code, and the project settings Visual Studio evaluates for the active configuration, then explains which of these causes applies. Choose Fix and the AI corrects it; CppPilot rebuilds the project and checks that the error is gone. Every change appears in Visual Studio for your approval.
Let the AI fix it in Visual Studio
CppPilot is a free extension that explains and fixes MSVC build errors with Codex, Claude, or CppPilot Cloud.
Related errors: LNK2019, LNK2001. See all guides.