C++ / Documentation search
Find the error. Find the next step.
Search by diagnostic code, copied message, or symptom. Filter by content and project system.
176 results
Browse documentation →C4430: missing type specifier
Fix C4430 missing type specifier in MSVC: unknown type names, missing includes, circular includes, and missing return types.
C4996: function may be unsafe or deprecated
Fix C4996 in MSVC: replace unsafe CRT functions such as strcpy and sprintf, or POSIX names, instead of hiding the warning.
LNK1104: cannot open file
Fix LNK1104 cannot open file in Visual Studio: missing library paths, libraries not built yet, and output files locked by a running program.
LNK1112: module machine type conflicts with target machine type
Fix LNK1112 module machine type x64 conflicts with x86: libraries and object files built for another platform.
LNK1120: unresolved externals
LNK1120 counts the unresolved external symbols of a link: fix the LNK2019 and LNK2001 errors reported before it.
LNK1168: cannot open file for writing
Fix LNK1168 cannot open for writing: the program you build is still running or another process locks it.
LNK1181: cannot open input file
Fix LNK1181 cannot open input file: a library name or folder that does not exist, or a library not built yet.
LNK2001: unresolved external symbol
What LNK2001 unresolved external symbol means, how it differs from LNK2019, and how to fix static members, virtual functions, and globals.
LNK2005: symbol already defined
Fix LNK2005 already defined in Visual Studio: definitions in headers, included .cpp files, and mixed runtime libraries.
LNK2019: unresolved external symbol
What LNK2019 unresolved external symbol means in Visual Studio, its common causes, and how to fix each of them.
LNK2026: module unsafe for SAFESEH image
Fix LNK2026 module unsafe for SAFESEH image in Win32 builds: old libraries and assembly files without safe exception handlers.
LNK2038: mismatch detected
Fix LNK2038 mismatch detected for RuntimeLibrary or _ITERATOR_DEBUG_LEVEL: make every project and library use the same runtime.
LNK4098: defaultlib conflicts with use of other libs
Fix LNK4098 defaultlib MSVCRT conflicts with use of other libs: link every library with the same C runtime.
MSB3073: command exited with code
Fix MSB3073 command exited with code 1, 4, or 9009: failing pre-build and post-build events in Visual Studio.
MSB6006: exited with code
Fix MSB6006 CL.exe or cmd.exe exited with code 2: find the real error above it, out-of-memory compiler crashes, and custom tools.
MSB8020: build tools cannot be found
Fix MSB8020 in Visual Studio: install the missing platform toolset or retarget the project to the installed one.
MSB8036: Windows SDK version not found
Fix MSB8036: install the Windows SDK version the project asks for, or retarget it to an installed one.
Fix build errors with AI
CppPilot explains and fixes MSVC compiler, linker, and MSBuild errors and warnings in Visual Studio, then rebuilds to check each fix.
C1004: A closing brace is missing.
Look for an unclosed function, class, or namespace above the end of the file. Editor outlining (the collapse markers in the margin) shows where a block does not end where you expect.
C1004: A conditional compilation block has no #endif .
Match every #if , #ifdef , and #ifndef with its #endif , even when the condition is false. An unterminated conditional can also produce a more specific diagnostic such as C1070, depending on compiler version and context.