Cross platform programming and a style question
I'm beginning a project that I'd like to be cross platform. My library is cross platform, but I'd like to ensure the entire project, when completed, is cross platform. I'm developping with MSVC 7, and I was wondering if anyone here could suggest anything (a link, even a google search would be appreciated!) for how to ensure my program is cross platform when completed.
I also have a question about programming style. Is it better to remove constants, structure definitions and enumeration definitions and place them in one big (or several smaller) files that are seperate and then included by each of my classes (for example each class could include something such as "ProgramDefinitions.h"). Or, is it better to have each individual class take care of it's own constants/struct/enum definitions? Should I consider how specific each definition is (a struct for a rectangle being represented as four ints would be very general whereas a constant to be used in one calculation only would be very specific) and place them accordingly?
Thanks!
I also have a question about programming style. Is it better to remove constants, structure definitions and enumeration definitions and place them in one big (or several smaller) files that are seperate and then included by each of my classes (for example each class could include something such as "ProgramDefinitions.h"). Or, is it better to have each individual class take care of it's own constants/struct/enum definitions? Should I consider how specific each definition is (a struct for a rectangle being represented as four ints would be very general whereas a constant to be used in one calculation only would be very specific) and place them accordingly?
Thanks!
