From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: Multiple-file problem Date: Tue, 01 Apr 1997 13:05:34 +0200 Organization: TU Chemnitz-Zwickau Lines: 25 Message-ID: <3340EBFE.353@Mathematik.tu-chemnitz.de> References: <333C3C43 DOT 7216 AT geocities DOT com> NNTP-Posting-Host: cancel.hrz.tu-chemnitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit CC: s_c AT geocities DOT com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Deltaman wrote: > > In 'somefunc.c' I include 'header.h' and 'mainprog.c' and in > 'mainprog.c' I include 'header.h'. It compiles perfectly (in RHIDE) but At first it is not god programming style to include in a source file an other source file with real code (not prototypes) until you know exactly what you do. And so you problem may be, that the code which is in 'mainprog.c' is now compiled in 'somfiunc.c' AND in 'mainprog.c' And the next reason (that's for Skye) can be the curently bug of RHIDE, that it includes when linking the final exacutable also for any header on the desktop the corresponding .o file. But this happens ONLY when not using a project. Robert -- ***************************************************************** * Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau * * Post: Am Berg 3, D-09573 Dittmannsdorf * * e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE * * WWW: http://www.tu-chemnitz.de/~rho * *****************************************************************