From: Alex Lowe Newsgroups: comp.os.msdos.djgpp Subject: Re: multiple file compiling Date: Fri, 01 Jan 1999 20:19:21 -0800 Organization: TempleCRC Lines: 16 Message-ID: <368D9E49.7F9B597E@2xtreme.net> References: <19990101213309 DOT 01915 DOT 00005184 AT ng144 DOT aol DOT com> NNTP-Posting-Host: p116.stk2.2xtreme.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [en] (Win98; U) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com #include and then after that #include "second.cpp"... order matters.. Hope that helps. -- Alex Twidler444 wrote: > > The problem is that I use a allegro. and I initiate the mouse routines in the > main(). and my second.cpp uses the mouse variables. I get an error because I > include the second.cpp at the beginning of the program and the mouse_x, mouse_y > and mouse_b has not been declared yet. Is there any way around this problem? > > Twidler