Date: Wed, 31 Dec 1997 09:57:30 +0200 (IST) From: Eli Zaretskii To: Michelle Barrette cc: djgpp AT delorie DOT com Subject: Re: Problem with multiple source files In-Reply-To: <34A9DA2D.6699@sympatico.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Wed, 31 Dec 1997, Michelle Barrette wrote: > - I have two C files and one header file > - One of the C files contains the variables declared normally > - The header contains the same declarations with 'extern' in front of > each > - I #include the header in both C files > > I get some 'undefined reference' errors and after that I get a bunch of > 'bfd assertion fail coff-i386.c:368' from ld Please throw together the shortest example of these files which reproduce the problem and post them here, together with the compilation/link command line that you use to compile them. It is very hard to guess the cause of your problem without seeing the code.