delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/02/18:15:53

From: Scott Holisky <sholisky AT worldnet DOT att DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Multiple Includes & Program Global Data
Date: Tue, 02 Jun 1998 17:08:25 -0500
Organization: AT&T WorldNet Services
Lines: 13
Message-ID: <6l1ssn$hpf@bgtnsc03.worldnet.att.net>
Reply-To: sholisky AT worldnet DOT att DOT net
NNTP-Posting-Host: 12.66.105.208
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Question:  I need to use the same header file in 2 source code files to
pass around global data.  How???  On the other compilers that I use,
there's a derective that tells the compiler to compile the header only
once, but allow both source code files to use it and everything in it. 
How can this be done???
	I use RHIDE and have a tired old 386.  GCC, LIBC and all are updated to
the current versions.  Any help would be great.

								- Thanks, Adam

P.S.  If there's another way to use global data on the program level,
please share.  And if this is a hopeless cause, mabye I'll look into
editing the source code...

- Raw text -


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