C++ / Documentation search
Find the error. Find the next step.
Search by diagnostic code, copied message, or symptom. Filter by content and project system.
205 results
Browse documentation →C2664: cannot convert argument
Fix C2664 cannot convert argument in MSVC: Unicode strings, references to temporaries, and const arguments.
C3861: identifier not found
Fix C3861 identifier not found in MSVC: functions called before their declaration, missing headers, and namespaces.
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.
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.
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.