To: Michael Feldman Cc: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP List) Subject: Re: A couple of questions from a new DJGPP user Date: Wed, 31 Aug 94 08:14:58 +0200 From: eliz AT is DOT elta DOT co DOT il > (1) I'm trying to compile a program out of a book that uses "getch". > This should be in conio, which in djgpp just includes gppconio. > The program compiles but the linker reports that getch is undefined. > What is the magic to get the linker to find it? getch() and other PC-specific routines are in the libpc.a library which isn't included automagically on the ld command line by gcc compilation driver (it only includes libc.a and libgcc.a). So the ``magic'' to get getch() is to include -lpc at the end of your gcc command line. > (2) Just for curiosity, where is getch, etc., in standard (Unix) gcc? > The linker can't find it there either. That's because there ain't no such thing as a Unix getch(). Eli Zaretskii