www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/09/15/17:00:04

Date: Thu, 15 Sep 1994 10:03:11 -0500 (CDT)
From: "Troy D. VanHorn" <tvanhorn AT ozarks DOT sgcl DOT lib DOT mo DOT us>
Subject: Re: Help with libpc!
To: Derrick Early <early AT finite DOT nrl DOT navy DOT mil>
Cc: djgpp <djgpp AT sun DOT soe DOT clarkson DOT edu>


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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019