0
Hello. I am having doubts when implementing a header in folders with different paths. I am placing my header in a folder called "include"
and implementations in a folder called "src"
. To solve this problem, I am doing the following in the implementation: #include "../include/header.h"
My doubt is that, when seeing many codes available on the internet, do not use the ".. /" to go to the directory, where many only include the header name. For example: #include "header.h"
I would like to know how this is possible as when I don’t path to the correct directory, I get file errors not found. Including, even the ready codes that low on the internet I need to fix the directory of the files as I get the same error.
What method do you use to compile the software? Make (Makefile), others?
– bruno
I use the same terminal, I haven’t learned to use Makefiles yet.
– André Sanches