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. How-to guidesMSBuild

    Precompiled headers in Visual Studio

    How to set up a precompiled header (pch.h, /Yc and /Yu) in a Visual Studio C++ project, what to put in it, and how to fix its errors.

  2. Error guidesMSBuild + CMake

    C1004: unexpected end-of-file found

    Fix C1004 unexpected end-of-file in MSVC: unbalanced braces in a class, a namespace, or a header.

  3. Error guidesMSBuild + CMake

    C1010: unexpected end of file while looking for precompiled header

    Fix C1010 in Visual Studio: include the precompiled header first, or turn precompiled headers off for that file.

  4. Error guidesMSBuild + CMake

    C1083: cannot open include file

    Fix C1083 cannot open include file in Visual Studio: include directories, configurations, quotes, and missing SDKs.

  5. Error guidesMSBuild + CMake

    C2001: newline in constant

    Fix C2001 newline in constant in MSVC: unterminated strings, backslashes in paths, and UTF-8 source files without a BOM.

  6. Error guidesMSBuild + CMake

    C2011: type redefinition

    Fix C2011 type redefinition in MSVC: include guards, duplicate definitions, and winsock.h against winsock2.h.

  7. Error guidesMSBuild + CMake

    C2027: use of undefined type

    Fix C2027 use of undefined type in MSVC: forward declarations, incomplete types, circular includes, and unique_ptr members.

  8. Error guidesMSBuild + CMake

    C2039: is not a member of

    Fix C2039 is not a member of in MSVC: typos, missing headers, the C++ language standard, and members of another class.

  9. Error guidesMSBuild + CMake

    C2061: syntax error: identifier

    Fix C2061 syntax error identifier in MSVC: unknown types in parameter lists, circular includes, and typename in templates.

  10. Error guidesMSBuild + CMake

    C2065: undeclared identifier

    What C2065 undeclared identifier means in MSVC and how to fix typos, missing headers, namespaces, and precompiled header mistakes.

  11. Error guidesMSBuild + CMake

    C2084: function already has a body

    Fix C2084 function already has a body in MSVC: headers included twice, definitions in a class and outside it, and .cpp includes.

  12. Error guidesMSBuild + CMake

    C2143: syntax error: missing ';' before

    Fix C2143 syntax error missing ';' in MSVC: unknown type names, a class without its closing semicolon, and circular includes.

  13. Error guidesMSBuild + CMake

    C2259: cannot instantiate abstract class

    Fix C2259 cannot instantiate abstract class in MSVC: pure virtual functions not overridden and signatures that do not match.

  14. Error guidesMSBuild + CMake

    C2280: attempting to reference a deleted function

    Fix C2280 attempting to reference a deleted function: copies of non-copyable types such as unique_ptr, mutex, and thread.

  15. Error guidesMSBuild + CMake

    C2440: cannot convert

    Fix C2440 cannot convert in MSVC: string literals, const pointers, void pointers, and enum class values.

  16. Error guidesMSBuild + CMake

    C2512: no appropriate default constructor available

    Fix C2512 no appropriate default constructor in MSVC: user constructors, members and base classes, and std::map operator[].

  17. Error guidesMSBuild + CMake

    C2664: cannot convert argument

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

  18. Error guidesMSBuild + CMake

    C3861: identifier not found

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

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

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