Variations (cont)
These techniques allow us to have a single source code base that
will compile and run in multiple environments.
But there are still management problems ...
- where do we put all of the
cpp definitions?
(Possible answers: in a config.h file, or in the Makefile )
- who is responsible for making sure they're set properly?
(Only answer: the person who downloads the code and compiles it i.e. the user)
To avoid maintenance problems, need to make the user's job easy.
|