I have multiple projects which have the same header files over and over again, is it possible to create a common utils folder with all the headers and their source files?
Asked
Active
Viewed 39 times
1 Answers
0
Yes, you can. First make a folder and insert all of your header file in that folder. then create a makefile and you can add that folder for the headers in a Makefile. See here
Other option can be to give path in include like
#include "../Headers/check.h"
#include "../Headers/stackstring.h"

Community
- 1
- 1

saurabh agarwal
- 2,124
- 4
- 24
- 46
-
will this work when I am doing normal debugging though? – Brian Pace Dec 03 '15 at 10:11
-
it's giving me undefined references, do I need to specify the path in the compiler? – Brian Pace Dec 03 '15 at 13:20
-
Solution: added files to project and they got linked perfectly – Brian Pace Dec 03 '15 at 13:42