Page 1 of 1

Linking Error in MPLAB 8

PostPosted: Sat Jun 28, 2008 5:23 am
by ameriq
Dear Friends, I am using MPLAB 8 the project compiles Ok, but when linking gives this error:
Executing: "C:mcc18inmplink.exe" /l"C:MCC18lib" /k"C:MCC18lkr" "C:MCC18lkr18c452.lkr" "D:PICProjectssalvomain.o" "D:PICProjectssalvomem.o" "D:PICProjectssalvoisr.o" "C:MCC18libp18f452.lib" "C:salvolibmcc18sfc18sfa.lib" /o"Test.cof"
MPLINK 4.15, Linker
Copyright (c) 2007 Microchip Technology Inc.
Error - Coff file format for 'array.o' is out of date.
Error - Could not build member 'array.o' in library file 'C:salvolibmcc18sfc18sfa.lib'.
Errors : 2

Link step failed.
BUILD FAILED: Sat Jun 28 18:15:17 2008


Re: Linking Error in MPLAB 8

PostPosted: Sat Jun 28, 2008 5:47 am
by aek

Re: Linking Error in MPLAB 8

PostPosted: Sat Jun 28, 2008 5:49 am
by ameriq
Thanks,
I have downloaded the new libraries fro C18.
that problem is resolved, but now its giving this error:
Executing: "C:mcc18inmplink.exe" /l"C:salvolibmcc18v3" -L"C:mcc18lib" /k"c:mcc18lkr" "C:MCC18lkr18c452.lkr" "c:salvosrcmem.o" "c:salvoexex1main.o" "C:MCC18libc018i.o" /o"ex1lite.cof"
MPLINK 4.15, Linker
Copyright (c) 2007 Microchip Technology Inc.
Error - section '_entry_scn' type is non-overlay and absolute but occurs in more than one input file.
Errors : 1

Link step failed.
BUILD FAILED: Sat Jun 28 18:46:31 2008

Pls guide.


Re: Linking Error in MPLAB 8

PostPosted: Sat Jun 28, 2008 10:49 am
by ameriq
Finally I got it Fixed. I was using 18F452, wheras the lnkr file selected was 18c452.
However I appreciate the need to use new library as suggested below.