Error map
undefined reference to C/C++: undefined reference to `function' — collect2: error: ld returned 1 exit status
C/C++ · layer 4, Application & API
Centre: this error. First ring: errors it is linked with (12). 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 (12)
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/C++: undefined reference to `main' — (.text+0x20) in crt1.o
The linker has no `main` function: the file with `main` is not compiled or linked, or `main` is spelled or declared incorrectly.
failed to solve: process "/bin/sh -c ..." did not complete successfully: exit code: 1
A RUN step in your Dockerfile failed. The real error is printed in the lines just above this message.
C/C++: undefined reference to `pthread_create' — missing -pthread (also `dlopen`, `clock_gettime`)
Your program uses threads (or another system library) but the linker was not told to link it.
dial tcp: lookup registry-1.docker.io: no such host / Temporary failure in name resolution during docker build
DNS isn’t working for the Docker daemon or inside build containers, so pulls and package downloads fail.
gyp ERR! build error / node-gyp rebuild failed
A dependency with native C/C++ code couldn’t compile — missing build tools, Python, or an unsupported Node version.
Error: Node Sass does not yet support your current environment
node-sass (deprecated) has no binary for your Node version/OS.
error: subprocess-exited-with-error / Failed building wheel for x
pip had to compile a package from source and the build failed — missing compiler, headers or system libraries.
Module parse failed: Unexpected token. You may need an appropriate loader to handle this file type
Webpack found syntax it can’t parse because no loader is configured for that file (JSX, TypeScript, CSS, or modern syntax in node…
CMake Error: Could not find a package configuration file provided by "Foo" (requested version 1.2)
`find_package(Foo)` could not locate the library's CMake config (FooConfig.cmake or FindFoo.cmake), so the library is not install…
failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory
docker build can’t find a Dockerfile in the build context you passed.
C/C++: free(): double free detected / double free or corruption (out) — Aborted (core dumped)
Memory was freed twice or the heap was corrupted (buffer overflow, freeing a non-heap pointer), so glibc aborted the program.
Two steps away (36)
C/C++: error: expected ';' before 'x' — missing semicolon
The compiler reached a token where a statement should have ended — almost always a missing semicolon on the line above.
C++: error: expected primary-expression before ')' token
The parser expected a value or expression and found a token that cannot start one — often a type name passed where a value belong…
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++: fatal error: foo.h: No such file or directory — #include not found
The preprocessor cannot find a header named in `#include`: wrong path, missing include directory (-I), or the library is not inst…
C/C++: multiple definition of `x'; first defined here — ld returned 1 exit status
The linker found the same function or global variable defined in two object files — usually something defined in a header.
C++: undefined reference to `vtable for X' — virtual function not defined
The linker cannot find the class's virtual table, which means at least one virtual member function was declared but never defined…
COPY failed: file not found in build context / "/app/x": not found
The Dockerfile COPY refers to a path outside the build context, excluded by .dockerignore, or relative to the wrong directory.
Dockerfile parse error line N: unknown instruction
A line in the Dockerfile doesn’t start with a valid instruction — usually a broken line continuation or a typo.
Error response from daemon: max depth exceeded (too many image layers)
The image has more layers than the storage driver allows (127 for overlay2), usually from repeatedly committing containers or ver…
error while loading shared libraries: libX.so.N: cannot open shared object file: No such file or directory
The program needs a shared library (.so) that isn’t installed or isn’t on the loader’s search path.
C++: terminate called without an active exception — std::thread destroyed while joinable
A `std::thread` object was destroyed (or reassigned) while its thread was still running, so the C++ runtime called `std::terminat…
MSVC: fatal error LNK1104: cannot open file 'foo.lib' (or 'app.exe' while it is running)
The Visual C++ linker could not open an input library or the output file — the path is wrong, the library is missing, or the .exe…
Error: connect ECONNREFUSED 127.0.0.1:5432
Nothing is listening at that host:port — the target service is down or you’re connecting to the wrong address.
HTTP 408 Request Timeout
The server closed the connection because the client took too long to send the complete request.
TypeError: Failed to fetch / NetworkError when attempting to fetch resource
The browser couldn’t complete the request at the network level — CORS, DNS, offline, blocked mixed content, or the server refused…
ModuleNotFoundError: No module named 'x'
Python can’t find the module you import — it isn’t installed in the interpreter/virtualenv that’s running, or the import path is…
npm ERR! code ELIFECYCLE / Command failed with exit code 1
An npm script (build, start, test, postinstall) exited with an error. ELIFECYCLE is only the wrapper — the real error is printed…
Error: error:0308010C:digital envelope routines::unsupported
An old build tool (webpack 4, old react-scripts) uses a hash algorithm that OpenSSL 3 in Node 17+ disables.
Error: Cannot find module 'x' (MODULE_NOT_FOUND)
Node can’t resolve the module path — the package isn’t installed, or a relative path/extension is wrong.
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './x' is not defined by "exports"
You imported a deep path inside a package that its package.json "exports" field doesn’t expose.
npm WARN EBADENGINE Unsupported engine / The engine "node" is incompatible with this module
A package requires a different Node.js version than the one you’re running.
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
The Gradle wrapper JAR (gradle/wrapper/gradle-wrapper.jar) is missing or corrupt.
error: externally-managed-environment
Your system Python (Debian 12+, Ubuntu 23.04+, Homebrew) refuses pip installs into the OS-managed environment (PEP 668).
ERROR: Could not find a version that satisfies the requirement x (from versions: none)
pip found no installable version of the package for your Python version, OS or index.
ChunkLoadError: Loading chunk 123 failed.
A lazily loaded JavaScript chunk couldn’t be downloaded — usually because a new deployment removed the old hashed files.
Module not found: Can't resolve 'fs' (Next.js / webpack 5)
A Node.js built-in (fs, path, crypto, net) is imported into code that runs in the browser bundle.
Error occurred prerendering page "/x". Read more: https://nextjs.org/docs/messages/prerender-error
A page threw an error while Next.js was rendering it at build time.
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: 'optional' in namespace 'std' does not name a template type — wrong -std standard
The standard-library feature you used needs a newer C++ standard than the compiler is currently set to.
Make: *** No rule to make target 'foo.c', needed by 'foo.o'. Stop.
`make` was asked to build a file for which there is no rule and no existing file — a missing source, a typo in the Makefile, or a…
COPY failed: forbidden path outside the build context: ../file
A COPY/ADD tries to read a file above the build context (../something); Docker only sends the context folder to the builder.
Docker build slow: "Sending build context to Docker daemon 2.5GB" / transferring context takes forever
docker build is uploading your whole project folder — node_modules, .git, data files — before building, because there’s no (or a…
Cloudflare Pages build: Error: Output directory "dist" not found / Failed: build output directory not found
The Pages build finished, but the folder set as “Build output directory” doesn’t exist — the framework wrote its files somewhere…
Kubernetes: OOMKilled (exit code 137)
The container used more memory than its limit, and the kernel killed it.
java.lang.OutOfMemoryError: Java heap space
The JVM ran out of heap memory and garbage collection couldn’t free enough.
Blue Screen: MEMORY_MANAGEMENT (Stop code 0x0000001A)
Windows detected a severe memory-management error — commonly faulty RAM, unstable memory settings or a bad driver.
Map another error
Popular: 500403400ORA-009331064Critical errorFileNotFoundException assemblyTypeError