From: twidler444 AT aol DOT com (Twidler444) Newsgroups: comp.os.msdos.djgpp Subject: multiple file compiling Lines: 13 NNTP-Posting-Host: ladder03.news.aol.com X-Admin: news AT aol DOT com Date: 1 Jan 1999 07:54:58 GMT Organization: AOL Canada http://www.aol.ca Message-ID: <19990101025458.11224.00005570@ng37.aol.com> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello, Im trying to make a game. This game is pretty long, so I have decided to chop the program into different parts. and have these different parts of the game in their own file. The only problem is how do I do the sharing of variables. 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 ) any help would be usefull Twidler