Mail Archives: djgpp/1994/09/15/17:00:04
On Wed, 14 Sep 1994, Derrick Early wrote:
> I'm in the process of compiling a eprom programmer on gcc, and I'm having
> trouble with the outportb and inportb routines. I put an include <pc.h> line,
> and I used the following to compile:
>
> gcc -g -lpc ppv2.c -o ppv2
>
> I get lots of undefined references to 'outportb' and 'inportb' errors.
>
> What am I doing wrong? I thought that the include pc.h would take care of
> that stuff.
I'm not sure, but I think you need to simply move the switch '-lpc' to
the end of the line.
Try:
gcc -g ppv2.c -o ppv2 -lpc
Troy...........
- Raw text -