Overinclusion of libraries C++
- by wyatt
I'm reading about how to put a makefile together, but no-one seems to mention what to do if your files require different sets of libraries, they all seem to use the same set of libraries for each file. Since it seems unlikely that every single file has the same libraries, I take it the list they use must amalgamate all of the libraries required across the project.
I just wanted to know if there's any downside to including too many libraries, or if the compiler works out which ones are needed and ignores the rest?
Thanks