J
John Smith
I have a project that consists of about a dozen translation
units. I use a command line compiler and it occured to me that I
could simplify compiling the project by #include(ing) them in a
header that looks something like this:
/* project.h */
#include "aaa.c"
#include "bbb.c"
#include "ccc.c"
....
It works, but I never see it done. What are the pros and cons of
this sort of thing? Is there a practical reason not to do it?
JS
units. I use a command line compiler and it occured to me that I
could simplify compiling the project by #include(ing) them in a
header that looks something like this:
/* project.h */
#include "aaa.c"
#include "bbb.c"
#include "ccc.c"
....
It works, but I never see it done. What are the pros and cons of
this sort of thing? Is there a practical reason not to do it?
JS