Mail Archives: djgpp/1993/07/22/18:57:25
There appears to be a problem using getkey()/getch() in conjunction with
the GRX library. For example, the following bare bones program compiles
correctly with "gcc file.c", but not with "gcc file.c -lgrx":
main()
{
getch();
getkey();
}
Instead, it gives the error message:
getkey.o(.text+24): multiple definition of `getkey (.text)'
getkey.o(.text+0): first seen here
The same error occurs when compiling with "gcc file.c -lgrx -lc",
but not with "gcc file.c -lc -lgrx".
An examination of LIBC.A and LIBGRX.A with "ar" or "nm" shows that both
libraries have getkey.o modules and getkey() functions. I think this is
causing the behavior described above. Can you shed any more light on this?
- JW
Dr. John M. Weiss, Associate Professor
Department of Mathematics and Computer Science
South Dakota School of Mines and Technology
501 East St. Joseph Street
Rapid City, SD 57701-3995
605-394-6145 jweiss AT silver DOT sdsmt DOT edu
- Raw text -