[Solved] include throws No such file or directory


#include <api.h>

is the way you include a system header. (That is, the header for a library installed on your system.) It does not search in the directory of the source file or in directories specified in -I command line arguments.

#include "api.h"

is the way you include your own headers. (But it will also search library header locations if it doesn’t find the header locally.)

solved include throws No such file or directory