it’s the cpps that are compiled not the .h files so including the .h or not doesn’t make any difference cause the cpps get added to the project compilation phase when you add them to the project.
Thanks. I know that it’s the .cpp that gets compiled, but I assumed that it would only happen if it was referenced somewhere else in the code.
Does that mean that every .cpp in a project and in the addons gets compiled and ends up as part of the binary, even if it’s not used?
One example that comes to mind is ofxPostprocessing, because I use one filter but it compiles ~25 of them. Is it possible to rewrite it in some way so it compiles only what you use?