I am using G++ with minGW on Win7 with this directory structure:
src -- all my .c and .cpp files
inc -- my .h file
My make line is below and the makefile is attached:
$(CC) -I ../inc -o hellomake $(objects) -static]
If I put the header into src the make works perfectly.
If I move my header to inc I get this error:
mingw32-make: *** No rule to make target 'hellomake.h', needed by 'hellomake.o'. Stop.
Shouldn't the -I ../inc make it look for the header in test/inc?