CppPilot

C++ / Documentation search

Find the error. Find the next step.

Search by diagnostic code, copied message, or symptom. Filter by content and project system.

  1. Error guidesMSBuild + CMake

    C4430: missing type specifier

    Fix C4430 missing type specifier in MSVC: unknown type names, missing includes, circular includes, and missing return types.

  2. Error guidesMSBuild + CMake

    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.

  3. Error guidesMSBuild + CMake

    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.

  4. Error guidesMSBuild + CMake

    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.

  5. Error guidesMSBuild + CMake

    LNK1120: unresolved externals

    LNK1120 counts the unresolved external symbols of a link: fix the LNK2019 and LNK2001 errors reported before it.

  6. Error guidesMSBuild + CMake

    LNK1168: cannot open file for writing

    Fix LNK1168 cannot open for writing: the program you build is still running or another process locks it.

  7. Error guidesMSBuild + CMake

    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.

  8. Error guidesMSBuild + CMake

    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.

  9. Error guidesMSBuild + CMake

    LNK2005: symbol already defined

    Fix LNK2005 already defined in Visual Studio: definitions in headers, included .cpp files, and mixed runtime libraries.

  10. Error guidesMSBuild + CMake

    LNK2019: unresolved external symbol

    What LNK2019 unresolved external symbol means in Visual Studio, its common causes, and how to fix each of them.

  11. Error guidesMSBuild + CMake

    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.

  12. Error guidesMSBuild + CMake

    LNK2038: mismatch detected

    Fix LNK2038 mismatch detected for RuntimeLibrary or _ITERATOR_DEBUG_LEVEL: make every project and library use the same runtime.

  13. Error guidesMSBuild + CMake

    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.

  14. Error guidesMSBuild

    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.

  15. Error guidesMSBuild

    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.

  16. Error guidesMSBuild

    MSB8020: build tools cannot be found

    Fix MSB8020 in Visual Studio: install the missing platform toolset or retarget the project to the installed one.

  17. Error guidesMSBuild

    MSB8036: Windows SDK version not found

    Fix MSB8036: install the Windows SDK version the project asks for, or retarget it to an installed one.

  18. CppPilot featuresMSBuild + CMake

    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.

  19. Examples and diagramsMSBuild + CMake

    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.

  20. Examples and diagramsMSBuild + CMake

    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.