Date: Thu, 22 Jul 93 19:50:33 CDT From: csaba AT vuse DOT vanderbilt DOT edu (Csaba A. Biegl) To: djgpp AT sun DOT soe DOT clarkson DOT edu, jweiss AT silver DOT sdsmt DOT edu Subject: Re: bug report (I think) From djgpp-bounces AT sun DOT soe DOT clarkson DOT edu Thu Jul 22 17:59:54 1993 To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: bug report (I think) 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". The 'getkey' module in GRX 1.02 does not contain the '_getch' entry. The libc.a (or libpc.a ?) version contains both '_getkey' and '_getch' in the SAME object module. If you use both and link with libgrx.a first, then the linker pulls in the 'getkey' module from GRX, but since '_getch' is still undefined it pulls in the libc.a (libpc.a) version too. At this point you get a second definition for '_getkey'. Csaba Biegl csaba AT vuse DOT vanderbilt DOT edu