Mail Archives: djgpp/1993/05/11/13:57:45
From: IN%"alane AT wozzle DOT linet DOT ORG" 11-MAY-1993 10:02:36.07
>> So, I think the following line should be added into the pc.h file in the gcc
>> include subdir:
>>
>> char getch(void);
>>
>> Then to use this getch() function, include <pc.h> and link with -lpc
>
>Ahem... not quite. You should #include <gppconio.h>, which _does_ declare
>getch(), and all the other Borland C conio.h functions. I wrote a complete
>set - I think everything in conio.h is in there.
>
I have a version <gppconio.h> dated 10/27/91, but there is no such declaration
for getch() in the .h file, but coded in libpc.a. For complete implemetation
of Borland C conio.h, gppconio.h should also have getche(), but there is no
declaration in .h, nor code in library. (I checked only these two functions.)
I got gppconio.h file from standarad distribution of djgpp/gcc 1.09/2.2.2.
Possibly, you keep more updated version of gppconio.h and its library.
If so, please post it or upload to omnigate, or let me know if it is already in
omnigate.
Thanks.
Wonkoo.
- Raw text -