|
|
Question : Header file path
|
|
In my project on linux, I have created multiple folders, folders for each module. I would require to add header file in one folder source file to another folder source file. I have given the full path now while including the header file. How can avoid adding the complete path while including the header files in source files
|
Answer : Header file path
|
|
No I would never give relative paths in the include directives. The reason for this is, if an include file contains a #include directive then the directory nominated by the original #include "../../xyz.h" will not be searched. That is the same reason why I say symbolic links are the wrong way to go. So, just use the -I option.
|
|
|
|