In Gcc is it possible to recursively compile .cpp files attached to one a single .cpp file until all associated files are compiled? And if not how would you accomplish this
I mean any files included directly or indirectly. As in program.c uses program.h and program.h in turn uses program2.h...etc. My problem is that I am trying to compile a test program for a library and even though I include the src path for the library in the '-I' flag i still get undefined references.