I\'ve been learning c++ and encountered the following question: I have a directory structure like:
- current directory - Makefile - include - he
You told the Makefile that include/header.h must be present, and you told the C++ source file that it needs header.h … but you did not tell the compiler where such headers live (i.e. in the "include" directory).
include/header.h
header.h
Do this:
CFLAGS = -c -Wall -Iinclude