Mail Archives: djgpp/1996/05/29/00:36:05
In article <31A4878E DOT 4C5F AT xensei DOT com> john9904 AT xensei DOT com "Joe Johnston" writes:
> Hi,
> I'm trying to get conio.h functions to work. Before you mention that
> this same question ask been asked and answeres 2^16 times, I know that I
> ought to compile with the -lpc argument. Even with this, I'm getting the
> D:\DJGPP\PROJ>gcc -lpc clr.c -o clr
> clr.c(.text+0x14): undefined reference to `getch'
> clr.c(.text+0x22): undefined reference to `putch'
It's only a guess, but AFAICR gcc requires libraries to be mentioned at the
end of the command line thus:
gcc clr.c -o clr -lpc
..splitbung, who has never used pc.h/*conio.h, so couldn't possibly comment
--
* TQ 1.0 * The 'Just So Quotes'.
"Laundry increases exponentially in the number of children."
-- Miriam Robbins
- Raw text -