www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/27/10:17:09

Date: Tue, 27 Aug 1996 16:05:51 +0200
Message-Id: <199608271405.QAA15906@ohm.fast.co.za>
Mime-Version: 1.0
To: djgpp AT delorie DOT com
From: Alf Stockton <stockton AT fast DOT co DOT za>
Subject: Post define structs

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019