PIC Problem First Lesson

One Method That Solved the Error, See Linker File Below

lesson_1_C code.htm



Complete C code Screenshot

Linker: Error Solved by adding the complete file path in the MCC18  18f46k20.lkr  file!

If there is a better method to solve this path error please post it to the Microchip Forum. 
Error - could not find file 'c018i.o'.

LIBPATH .

FILES C:\mcc18\lib\c018i.o
FILES C:\mcc18\lib\clib.lib
FILES C:\mcc18\lib\p18f46k20.lib

Should Microchip PDF instructions better clarify this File:
18f46k20.lkr path issue in the first lesson instructions for the beginner?

Searching for a solution to the original error above I incorrectly substituted the masm 18f46k20.lkr file when using C code programming and it gives this error message:   
Error - Coff file './c018i.o' could not read string table.

Linker File 18f46k20_lkr.htm

Note: Below figure 3.9 of PDF, not following these instructions may also have led to the original error!

Note:
If an error that the include file “p18f46k20.h” cannot be found is generated, this usually means that MPLAB C18 was installed without checking the Add header file path to MCC_INCLUDE environment variable option during setup. It is recommended to re-install MPLAB C18 with this option checked.





Complete lkr Screenshot


Header File 18F46K20_h.htm



h Screenshot Graphic bottom trimmed off.



Error Screenshot Graphic right side trimmed off.