Xref: news2.mv.net comp.os.msdos.djgpp:4316 From: Tom Wheeley Newsgroups: comp.os.msdos.djgpp Subject: Re: conio.h and -lpc problem Date: Mon, 27 May 96 17:56:06 GMT Organization: City Zen FM Lines: 21 Message-ID: <833219766snz@tsys.demon.co.uk> References: <31A4878E DOT 4C5F AT xensei DOT com> Reply-To: tomw AT tsys DOT demon DOT co DOT uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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