delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/31/02:57:39

Date: Wed, 31 Dec 1997 09:57:30 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Michelle Barrette <michelle DOT barrette AT sympatico DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: Problem with multiple source files
In-Reply-To: <34A9DA2D.6699@sympatico.ca>
Message-ID: <Pine.SUN.3.91.971231095556.3217Q-100000@is>
MIME-Version: 1.0

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019