I tried the code as-is and got a bunch of errors:
Error [482] ; . symbol "_DelayMs_interrupt" is defined more than once in "877.obj"
Error [482] ; . symbol "_DelayS" is defined more than once in "877.obj"
Error [482] ; . symbol "_DelayMs" is defined more than once in "877.obj"
Error [482] ; . symbol "_DelayBigMs" is defined more than once in "877.obj"
Error [482] ; . symbol "_DelayBigUs" is defined more than once in "877.obj"
Error [482] ; . symbol "_delayus_variable" is defined more than once in "877.obj"
Error [482] ; . symbol "_DelayMs_interrupt" is defined more than once in "877.obj"
Error [482] ; . symbol "_DelayS" is defined more than once in "877.obj"
Error [482] ; . symbol "_DelayMs" is defined more than once in "877.obj"
Error [482] ; . symbol "_DelayBigMs" is defined more than once in "877.obj"
Error [482] ; . symbol "_DelayBigUs" is defined more than once in "877.obj"
Error [482] ; . symbol "_delayus_variable" is defined more than once in "877.obj"
I changed "delay.c" to "delay.h" and compiled...
It worked! I've got a blinking led now.
Thanks for your help. I'm guessing it's the config parameter that did it.
I had tried it with this config earlier:
__CONFIG( XT & WDTDIS & PWRTDIS & BORDIS & LVPDIS & WRTEN & DEBUGDIS & UNPROTECT );
but that didn't work.
Thanks again for your speedy responses!
Now it's time to upgrade blinky led program to something more useful.