Error map
makes pointer from integer without a cast C: warning: assignment makes pointer from integer without a cast
C/C++ · layer 4, Application & API
Centre: this error. First ring: errors it is linked with (8). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.
Directly related (8)
Go: panic: runtime error: invalid memory address or nil pointer dereference
The program used a pointer, map, interface or struct field that was nil — usually an uninitialised value or an ignored error.
C++: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
You compared a string literal or pointer with a character or integer — typically `ch == "y"` instead of `ch == 'y'`.
C: warning: implicit declaration of function 'foo' [-Wimplicit-function-declaration]
In C you called a function the compiler has not seen declared — usually a missing `#include`. Newer compilers treat it as an erro…
C: warning/error: passing argument from incompatible pointer type [-Wincompatible-pointer-types]
A pointer of one type is passed where another pointer type is expected.
C++: warning: 'X::a' will be initialized after 'X::b' [-Wreorder]
Members are initialised in declaration order, not in the order of the constructor's initialiser list.
C/C++: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
A variable is read on some path before it is assigned.
C/C++: warning: address of local variable 'x' returned [-Wreturn-local-addr]
The function returns a pointer or reference to a variable that no longer exists after it returns.
C++: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
A string literal (const char[]) is assigned to a non-const `char*`.
Two steps away (19)
Segmentation fault (core dumped)
A program accessed memory it wasn’t allowed to, and the kernel killed it with SIGSEGV (exit code 139).
Go: fatal error: all goroutines are asleep - deadlock!
Every goroutine is blocked waiting (on a channel, mutex or WaitGroup), so the program can never continue.
Go: declared and not used: x / "fmt" imported and not used
Go refuses to compile code with unused local variables or unused imports.
C++: error: no match for 'operator<<' (operand types are 'std::ostream' and 'X')
You used an operator on a type that does not define it — most often printing your own class with `
C++: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
C++ forbids silently dropping `const` or converting between unrelated pointer types — typically a string literal assigned to `cha…
C++: error: 'string' does not name a type
Where the compiler expected a type, it found a name it does not know as one — a missing header, namespace, or class declared late…
C/C++: undefined reference to `function' — collect2: error: ld returned 1 exit status
The linker can’t find the definition of a function or variable that was declared and used.
C++: error: 'x' was not declared in this scope (undeclared identifier)
The compiler met a name it has never seen: it is misspelled, declared later, out of scope, or its header or namespace is missing.
C++: error: redefinition of 'class X' / multiple definition — missing include guard
The same class, struct or function body was included twice in one translation unit because the header has no include guard.
C++: error: passing 'const X' as 'this' argument discards qualifiers [-fpermissive]
A const object (or const reference) is calling a method that is not declared const, which could modify it.
C++: error: call to implicitly-deleted default constructor of 'X'
A class has no usable default constructor because a member or base cannot be default-constructed.
MSVC: error C2512: 'X': no appropriate default constructor available
A default-constructed object requires a default constructor that does not exist.
C++: error: narrowing conversion of 'x' from 'int' to 'char' inside { } [-Wnarrowing]
Brace initialisation `{}` refuses conversions that can lose data, such as `double` to `int` or a runtime `int` to `char`.
C/C++: runtime error: signed integer overflow / null pointer / shift exponent too large (UndefinedBehaviorSanitizer)
UBSan detected code that triggers undefined behaviour (overflow, null dereference, out-of-bounds index, bad shift, misaligned acc…
MemorySanitizer: use-of-uninitialized-value
Uninitialised memory influenced a branch or output.
C/C++: Segmentation fault (core dumped) — SIGSEGV from a null, dangling or out-of-bounds pointer
The program touched memory it is not allowed to access — a null or dangling pointer, an out-of-range array index, or a stack over…
C/C++: ==ERROR: AddressSanitizer: heap-use-after-free on address — memory used after delete/free
The program read or wrote a heap block after it had been freed; ASan shows who freed it and where it was allocated.
Rust: error[E0608]: cannot index into a value of type `HashSet<i32>` / `String` cannot be indexed by `{integer}`
The type doesn't support `[]` indexing (or not with that index type).
C: error: assignment to expression with array type
C cannot assign one array to another with `=`.