Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7996

C/C++ • Re: Little BASH file For Adding New Source File to Multi-File Project

$
0
0
Why not have a single .h file that includes all other .h files, like this:

Code:

all.h:#include <something.h>#include <other.h>// And the latest in the family:#include <newstuff.h>
Then your newstuff.cpp (and all other .cpp files) only needs to:

Code:

#include <all.h>

Statistics: Posted by deepo — Sat Feb 07, 2026 11:03 pm



Viewing all articles
Browse latest Browse all 7996

Trending Articles