Mail Archives: djgpp/1996/05/24/19:34:32
Xref: | news2.mv.net comp.os.msdos.djgpp:4237
|
From: | Joe Johnston <john9904 AT xensei DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | conio.h and -lpc problem
|
Date: | Thu, 23 May 1996 11:43:10 -0400
|
Organization: | HQwest
|
Lines: | 37
|
Message-ID: | <31A4878E.4C5F@xensei.com>
|
NNTP-Posting-Host: | john9904.xensei.com
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
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'
Here's a listing(it's just a test program):
#include <stdio.h>
#include <gppconio.h>
#include <pc.h>
main(){
int c;
c=getch();
putch(c);
printf("\nDone.");
return 0;
}
Could it be that djgpp.env isn't setup properly? The test programs in the
sample directory all compiled fine. I've got the DJGPP env variable
referenced in AUTOEXEC.bat
GCC version 2.6.3
DOS 7.0(win95's dog emulator)
Thanks in advance for the pointer.
--
================================================================
"I can't *believe* it's not butter" -Stunned Supermarket Parton
================================================================
Name: Joe Johnston
Email: john9904 AT xensei DOT com
Homepage: http://www.xensei.com/usres/john9904/index.html
Phone: Don't bother, I'm never there.
- Raw text -