When I comment out the new function in Program B as follows: //void delay_1_msec (void) //{ //count = 110; //while (count>0) //{ //count--; //} //} Program B compiles as expected. Uncommenting these lines stops the program from compiling. So I have confirmed that there is a problem with my function declaration, but I can't for the life of me figure out what it is. -- Jason Hsu http://www.jasonhsu.com/swrwatt.html http://www.jasonhsu.com/swrwatt-c.txt http://www.jasonhsu.com/swrwatt-asm.txt -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist