Mail Archives: djgpp/1993/10/15/10:36:34
>
>
> 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 -