C++ build consistency check.
The secret of being a bore is to tell everything.
-- Voltaire
Last updated: December 26th, 2001
Building big project especially on Unix platform can take hours and incremental build sometimes is not reliable enough.
In this situation it is very important to know whether an incremental build was correct and all affected files were
rebuilt. Usually some files do not get recompiled when a header, included in that file, is changed. In order
to detect that problem I wrote a simple build consistency checker. To use it,
copy header_checker.cpp and header_checker.hpp files into some high level shared library and in all header files add:
CHECK_HEADER(your_header_hpp_var, "{$Header$} 000")
I added "000" at the end in case you want to change the header and recompile the source again (revision does not change in
this case). In the source file add: CHECK_FILE the macro is only for error reporting - it will
emit error message that in this file some header revisions do not match.
Source: header_check.zip.
Ps. I do not recommend to use it with C++Builder - it will stop precompiling headers with static variables inside
Good luck!.