Mail Archives: djgpp/1996/08/27/10:17:09
Is there any way to tell DJGPP's gcc or cpp to accept that if it comes
across a variable type not already defined that this variable will be
defined later?
I have a situation were code contains a #include for a *.h that includes a
#include for another file. The second included file contains a reference to
a struct that will only be defined in the first include file after than said
#include of the second file.
Now obviously the easy way around this is to move the typedef to before the
#include of the second file but I don't want to solve the problem this way.
This code has previously compiled under MSC 6.0 so I am assuming that MSC
first processes all includes and then in a second pass resolves references,
where, and here I am assuming, gcc or cpp resolves as it goes.
Regards,
Alf stockton AT fast DOT co DOT za
- Raw text -