T
Tomás Ó hÉilidhe
Recently, there was a Linux program distributed as source code, and it
compiled fine on the majority of systems. However on some systems, it
failed to compile. On some of these systems, people were getting
errors for undeclared tokens, while others were getting linking
errors.
Anyway, the problem was that one of the source files was missing:
#include <stdio.h>
This wasn't a problem on most systems because some of the other header
files that were included actually included stdio.h.
Is there any utility out there that will process a source file and
notify you if you're depending on a declaration that isn't present in
a header file that's included directly in the source file?
compiled fine on the majority of systems. However on some systems, it
failed to compile. On some of these systems, people were getting
errors for undeclared tokens, while others were getting linking
errors.
Anyway, the problem was that one of the source files was missing:
#include <stdio.h>
This wasn't a problem on most systems because some of the other header
files that were included actually included stdio.h.
Is there any utility out there that will process a source file and
notify you if you're depending on a declaration that isn't present in
a header file that's included directly in the source file?