Sometimes I run into situation where I find that I need to make an #include to large third party file just so I can use one function or a small class and that makes me feel guiltiy as I know that this is gone increase my compile time as it will complie the whole file when I just wanted that one function. Is there any way to get around this and only include that one function that I want without rewriting the whole thing?
You have some options:
extern
the single function you care about, like so extern int GetMeaningOfLife(int mice);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With