C++ Common compile/linker errors (GCC) fatal error: ***: No such file or directory

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

The compiler can't find a file (a source file uses #include "someFile.hpp").

qmake:

INCLUDEPATH += dir/Of/File

cmake:

include_directories(dir/Of/File)

g++ call:

g++ -o main main.cpp -Idir/Of/File


Got any C++ Question?