I just came to know that if we include anything in .pch file, we don’t have to include later in other files. Now I am thinking of adding all of my files in it so that I don’t have to include them in other files and create a mess at the start of each file. But I was thinking if this is a good practice? If not, why? And if good, why?
Share
“Hi Alex .. I’ll take bad ideas for $1000” 😀
Aside from Oscar’s answer, you will also subvert the build process. As every file knows about and hence depends on every other file, then changing a single file will mean that all compilation units in the project will be forced to be built on every recompilation – rather than just building what has changed.