Date: Thu, 15 Sep 1994 10:03:11 -0500 (CDT) From: "Troy D. VanHorn" Subject: Re: Help with libpc! To: Derrick Early Cc: djgpp 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 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...........