0

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?

Project files with header files

Brian Pace
  • 135
  • 1
  • 13

1 Answers1

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