JeremyR
Im slowly working through David Gould's plugin examples (in between changing nappies and putting kids to bed). One thing Im a little unclear with currently are the headers he chooses to put on the main.cpp. The obvious one to me is the <"main.h"> because this file contains most of the other header files needed to run main.cpp. But then he also has a couple of other headers in there that seem as though they should just go on the main.h file itself.

So what is the general practice here? To me it seems more logical just to have ALL the headers in the main.h file and just <"main.h"> in the main.cpp.

Thoughts and advice?
Reply 0 0
pshipkov
I don't think there is a general rule how to do that.
So what you are saying is totally a valid solution.
I personally add the needed headers in the cpp files that need them.

Reply 0 0
JeremyR
k thanks.
Reply 0 0
Reply