Date: Fri, 1 Jan 1999 18:19:59 +0200 (EET) From: Toni Rasanen X-Sender: torasane AT paju DOT oulu DOT fi To: djgpp AT delorie DOT com Subject: Re: multiple file compiling In-Reply-To: <19990101025458.11224.00005570@ng37.aol.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Reply-To: djgpp AT delorie DOT com On 1 Jan 1999, Twidler444 wrote: > Say I declare the variable ROOM in the main file and also use it in the second > file. How do I take care of this? Do I include the second file? (#include You can't do it that way - or at least it won't be easy. Easiest way is to make external "variables" -c file, where you declare _all_ variables, and include it to every other file. Practically it would be something like this; vars.c: #include vars.h: room62.c: (one of your part files) #include main.c: (main routine) #include ... /// Toni Räsänen /// torasane AT mail DOT student DOT oulu DOT fi \\\ Physicians ask how. Filosofians ask why. Dragons don't care.