Mail Archives: djgpp/1995/07/24/12:15:49
Hi,
I cannot use functions from the "libpc.a" library. For instance, for a test
with the "inportb" function:
#include <pc.h>
#include <stdio.h>
int main(void)
{
int ch;
ch=inportb(0x60);
printf("%d\n",ch);
return(0);
}
I used the following parameters for compilation:
gcc -lpc t.c -o t
and I got the following error message:
t.c (.text +0x12): undefined reference to 'inportb'
Does anyone can help me? It's perhaps a trivial problem, but after reading
all FAQ's I was not able to solve it. Thank you!
Whilk.
- Raw text -