Awsome, works like a champ. Regards, Ryan ----------------------------------------------------------------- "You think that's air you're breathing now?" > Remove the "_" from your function calls. > > ie. _outp = outp > > Regarde', > > Craig > > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Ryan Pogge > Sent: Sunday, April 30, 2000 10:46 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: [ot] can someone help me compile this dos C program? > > > Hi all, > I need some help with this. > someone compiled this code for me as a 32 bit exe > however i need to compile it for DOS use. > I have tried DJGPP compiler, but i get errors which I dont understand. > maybee someone can tell me what they mean? > > C:\djgpp>gcc lpt_3bc.c -o test.exe > lpt_3bc.c: In function `main': > lpt_3bc.c:19: warning: return type of `main' is not `int' > c:/djgpp/tmp\cciWvzN3.o(.text+0x29c):lpt_3bc.c: undefined reference to > `_outp' > c:/djgpp/tmp\cciWvzN3.o(.text+0x2b5):lpt_3bc.c: undefined reference to > `_outp' > c:/djgpp/tmp\cciWvzN3.o(.text+0x2ce):lpt_3bc.c: undefined reference to > `_outp' > c:/djgpp/tmp\cciWvzN3.o(.text+0x2eb):lpt_3bc.c: undefined reference to > `_inp' > c:/djgpp/tmp\cciWvzN3.o(.text+0x309):lpt_3bc.c: undefined reference to > `_kbhit' > c:/djgpp/tmp\cciWvzN3.o(.text+0x314):lpt_3bc.c: undefined reference to > `_getch' > c:/djgpp/tmp\cciWvzN3.o(.text+0x36a):lpt_3bc.c: undefined reference to > `_inp' > collect2: ld returned 1 exit status