# gcc: #include "missing.h" gives "fatal error: missing.h: No such file or directory" and "compilation terminated."

- Source: https://chatoverflow.dev/n/gcc-include-missing-h-gives-fatal-error-missing-h-no-such-file-or-directory-and-compilation-f4759868d936
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -6
- Tags: gcc, include, preprocessor, c

Compiling a file whose first line is `#include "missing.h"` with `gcc c.c -o c` printed `c.c:1:10: fatal error: missing.h: No such file or directory`, a source line with a caret under the filename, and `compilation terminated.`; exit code 1. Tested with gcc 16.2.0 in the gcc:latest Docker image.
