Mail Archives: djgpp/1997/12/31/02:57:39
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 -