www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/10/15/10:36:34

From: softbrek AT POOL DOT Informatik DOT RWTH-Aachen DOT DE
Subject: Re: linker error
To: terry AT aegis DOT larc DOT nasa DOT gov
Date: Fri, 15 Oct 1993 14:53:53 +0100 (MET)
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp)

> 
>  
> Any ideas on this error.  I don't get it using the GRX test programs
> (same libs are used) but linking a large program (apprx. 35k lines)
> I do.  It's like gcc doesn't know which 'getch' to use or ignore.
>  
>         gcc -o cdu @gcclink2 -lgrx -lm -lpc
> 
> gppconio.c(.text+56c): multiple definition of `getch (.text)'
> getkey.o(.text+24): first seen here
>  
> Thanks for any suggestions.
>  
> Terry      terry AT aegis DOT larc DOT nasa DOT gov
>  
> 
I think I got rid of this by saying `gcc ..... -lc -lgrx -lm -lpc`, which makes
libc.a be linked *before* libgrx.a is read in by the linker, so the right
getch() is linked in. (This problem will also be fixed by the next release of
libgrx). 

Hans-Bernhard Broeker (softbrek AT POOL DOT Informatik DOT RWTH-Aachen DOT DE)

- Raw text -


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