Skip to content
Advertisement

Setup makefile for ‘path agnostic’ inclusions

In my project files I just want to be able to say:

main.cpp:

JavaScript

When these headers files reside in separate

JavaScript

I’ve setup my make file to attempt to achieve this but I still get fatal error: foo.h: No such file or directory so I haven’t been able to set it up correctly.

Makefile:

JavaScript

Is LIBS correct? How can I achieve relative/agnostic include paths?

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement