Pumpkin, Inc.

Pumpkin User Forums

Linking Error in MPLAB 8

For issues specific to Microchip's PICmicro® MCUs, including compilers (e.g. HI-TECH PICC & PICC-18, Microchip MPLAB®-C18) and IDEs (e.g. Microchip MPLAB®).

Linking Error in MPLAB 8

Postby ameriq » Sat Jun 28, 2008 5:23 am

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

ameriq
 
Posts: 3
Joined: Fri Jun 27, 2008 11:00 pm
Location: Pakistan

Re: Linking Error in MPLAB 8

Postby aek » Sat Jun 28, 2008 5:47 am

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: Linking Error in MPLAB 8

Postby ameriq » Sat Jun 28, 2008 5:49 am

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.

ameriq
 
Posts: 3
Joined: Fri Jun 27, 2008 11:00 pm
Location: Pakistan

Re: Linking Error in MPLAB 8

Postby ameriq » Sat Jun 28, 2008 10:49 am

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.
ameriq
 
Posts: 3
Joined: Fri Jun 27, 2008 11:00 pm
Location: Pakistan


Return to PICmicro MCUs

Who is online

Users browsing this forum: No registered users and 1 guest

cron