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

    C2664: cannot convert argument

    Fix C2664 cannot convert argument in MSVC: Unicode strings, references to temporaries, and const arguments.

  2. Error guidesMSBuild + CMake

    C3861: identifier not found

    Fix C3861 identifier not found in MSVC: functions called before their declaration, missing headers, and namespaces.

  3. Error guidesMSBuild + CMake

    C4244: conversion, possible loss of data

    Fix warning C4244 possible loss of data in MSVC: floating-point to integer and wide to narrow integer conversions.

  4. Error guidesMSBuild + CMake

    C4267: conversion from 'size_t', possible loss of data

    Fix warning C4267 conversion from size_t to int in x64 builds: container sizes, loop indexes, and Windows API lengths.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. Error guidesMSBuild + CMake

    LNK1120: unresolved externals

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

  10. 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.

  11. 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.

  12. 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.

  13. Error guidesMSBuild + CMake

    LNK2005: symbol already defined

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

  14. 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.

  15. 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.

  16. 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.

  17. 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.

  18. 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.

  19. 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.

  20. 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.