Programming & Systems Guides
Empirical benchmarks and systems guides appear first, followed by the compiler and error-code reference archive. Browse by topic, jump to the error reference archive, or subscribe via RSS.
-
'std::map' Is Not a Member of 'std' Fix C++ · Error Reference
A program that uses std::map fails with ''map' is not a member of 'std'' when the #include
-
'std::function' Is Not a Member of 'std' Fix C++ · Error Reference
A program that uses std::function fails with ''function' is not a member of 'std'' when the #include
line is... -
'std::deque' Is Not a Member of 'std' Fix C++ · Error Reference
A program that uses std::deque fails with ''deque' is not a member of 'std'' when the #include
line is missing —... -
'std::array' Is Not a Member of 'std' Fix C++ · Error Reference
A program that uses std::array fails with ''array' is not a member of 'std'' when the #include
line is missing... -
E0050 Wrong Parameter Count Fix Rust · Error Reference
A trait method implemented with the wrong number of parameters fails with E0050: the method has one count, the declaration in the trait has another, and the...
-
E0133 Unsafe Call Fix Rust · Error Reference
Calling an unsafe function, dereferencing a raw pointer, using a mutable static, calling a foreign function, or calling an unsafe method outside an unsafe...
-
E0615 Take Value of Method Fix Rust · Error Reference
Writing text.len instead of text.len() fails with 'attempted to take value of method len on type String': a method is not a field, and the dot...
-
E0072 Recursive Type Fix Rust · Error Reference
A type that contains itself by value can never have a finite size, and the compiler says so with E0072: recursive type has infinite size. This guide...
-
E0121 Placeholder Type Fix Rust · Error Reference
Writing the placeholder _ as a type on an item signature — a function parameter, a return type, a static, a const, a struct field, or a type alias — fails...
-
E0407 Method Not in Trait Fix Rust · Error Reference
Adding a method inside a trait implementation that the trait never declared fails with 'method is not a member of trait': a trait impl may define...
-
E0053 Method Signature Mismatch Fix Rust · Error Reference
Implementing a trait method with a signature that does not match the trait declaration fails with 'method has an incompatible type for trait': the...
-
E0623 Lifetime Mismatch Fix Rust · Error Reference
A function whose parameter and return type are declared with different lifetimes, while data from that parameter reaches the return value through a trait...
-
E0583 File Not Found for Module Fix Rust · Error Reference
A `mod config;` declaration with no file behind it fails with 'file not found for module': the compiler looked for config.rs or config/mod.rs next...
-
E0204 Copy Trait Field Fix Rust · Error Reference
A type that derives or implements Copy while one of its fields — a String, a Vec, or a &mut reference — does not implement Copy fails with E0204: the...
-
E0463 Can't Find Crate Fix Rust · Error Reference
Naming a crate the compiler was never linked to fails with 'can't find crate': the crate is not on the search path, not named by --extern, and...
-
E0422 Cannot Find Struct Fix Rust · Error Reference
A struct literal such as Point { x: 1, y: 2 } whose name is not in scope fails with E0422: cannot find struct, variant or union type in this scope. This...
-
Undefined Reference to Typeinfo Fix C++ · Error Reference
A link that fails with 'undefined reference to typeinfo for X' is missing the run-time type information object for a polymorphic class, not a...
-
Undefined Reference to Static Member Fix C++ · Error Reference
A link that fails with 'undefined reference to Config::limit' is missing the definition of a static data member, not its declaration. The...
-
R_X86_64_PC32 Relocation Error Fix C++ · Error Reference
The GNU linker stops a shared-object build when an object compiled without -fPIC reaches a global variable through an R_X86_64_PC32 relocation...
-
R_X86_64_32 Relocation Error Fix C++ · Error Reference
A function that returns a string literal, compiled without -fPIC, records the literal's address as an R_X86_64_32 relocation against .rodata: the GNU...
-
Pure Virtual Method Called Fix C++ · Error Reference
A base class constructor or destructor that reaches a pure virtual function through an ordinary member function compiles cleanly, then aborts at run time...
-
Jump to Label Crosses Initialization Fix C++ · Error Reference
GCC stops the build when a goto or a switch case label jumps past the initialization of a variable that is still in scope at the label: 'jump to...
-
Invalid Use of Incomplete Type Fix C++ · Error Reference
GCC stops the build with 'invalid use of incomplete type' when code uses a forward-declared class as if its definition were known: calling a member...
-
DSO Missing From Command Line Fix C++ · Error Reference
A program that calls a function from a shared library B directly, but names only library A on the link line, fails even though A itself depends on B: the...
-
Double Free Detected in Tcache Fix C++ · Error Reference
Deleting the same allocation twice is undefined behavior, and glibc's allocator catches the common case: the second delete reaches free() with the chunk...
-
Cannot Declare Variable of Abstract Type Fix C++ · Error Reference
GCC stops the build when code tries to create an object of a class that still has a pure virtual function with no final overrider: 'cannot declare...
-
E0283 Type Annotations Needed Fix Rust · Error Reference
Rust error E0283, type annotations needed, means inference found more than one type that satisfies the constraints and could not pick one - the ambiguity...
-
E0512 Transmute Size Mismatch Fix Rust · Error Reference
Rust error E0512, cannot transmute between types of different sizes, or dependently-sized types, means a std::mem::transmute call named a source type and a...
-
E0038 Trait Not Object Safe Fix Rust · Error Reference
Rust error E0038, the trait is not dyn compatible, means a trait cannot be used as a trait object - as dyn Trait behind a pointer - because something in the...
-
E0603 Private Item Fix Rust · Error Reference
Rust error E0603, a private item was used outside its scope, means code named an item - a module, a struct, a function, a constant, an enum, a static, a...