Why can cxref process my header file in isolation?
The cxref program needs to process the header files to enable a cross reference for them to be generated. In many cases, the header file will not have been written with this in mind, and may rely on other header files being included before the one being processed. The best solution to this is to modify the header file so that it includes all of the header files that it needs. Another option is to use ‘– -include filename.h’ on the command line. This will include the specified file (filename.h) into the source file that is being processed at the beginning. There is a Perl script supplied with the cxref source files called fixheader. This can be used to automatically determine what header files may be required. The decision is based on the header files that are used for the files that cxref can process and lots of test compilations.