Mail Archives: djgpp/1996/06/01/22:32:08
In article <Ds2x5y DOT 2uB AT cee DOT hw DOT ac DOT uk> pjbk AT cee DOT hw DOT ac DOT uk "Peter JB King" writes:
> In article <31A4878E DOT 4C5F AT xensei DOT com> Joe Johnston <john9904 AT xensei DOT com> 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'
> The problem is the ordre of the arguments to gcc. It searches the
> library when it has no object file to search for unresolved refeerences.
> Try this instead
> > D:\DJGPP\PROJ>gcc clr.c -o clr -lpc
Strangely, though, I compiled the exact same program as detailed earlier
and it ran perfectly, even if I omitted the -lpc. Maybe I am redefining
perfectly, but it seemed to work ok when I tried it...
..splitbung, with a clean install of v2.
--
* TQ 1.0 * The 'Just So Quotes'.
"I think you should defend to the death their right to march, and then go
down and meet them with baseball bats."
-- Woody Allen, on the KKK
- Raw text -