+ Reply to Thread
Results 1 to 5 of 5

Thread: MPLAB, C18(lite) linker file

  1. #1
    sukhavsa Newbie
    Join Date
    Nov 2009
    Posts
    3

    MPLAB, C18(lite) linker file

    Hi

    I have downloaded the C18 (lite) version from the microchip website.
    I am trying to use it for PIC kit 3 with PIC18F8722. While i am trying to build the project i am getting an error message as follows
    "Error - could not find file 'c018i.o'."

    the lite version had the 18F8722_g.lkr file but i could not find the 18f8722i.lkr in the folder.


    while i am trying to build using _g.lkr file i am getting the error. How do i resolve this and build my project. Please help.


  2. #2
    3v0
    3v0 is offline
    3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent 3v0 Excellent
    Join Date
    Jul 2006
    Location
    USA
    Posts
    6,399
    Blog Entries
    11

    It is finding the linker script OK because the script is looking for c018i.o and can not find it.

    It is a bug in that the lib search path NOT being set by the wizzard or the most evident way to do so under project "Set Language Tool Locations....

    To fix it do select PROJECT>BUILD_OPTIONS>PROJECT,
    click on the DIRECTORIES tab. Using the drop down list for "Show directories for" select "Library Search Path". Click New and add "C:\mcc18\lib" to the list.

    Good Luck
    3v0
    Please post questions to the forums. PM's are for personal communication.

    BCHS/3v0's Tutorials
    Junebug USB PIC programmer kit., USB Bit Whacker,
    The 15 Minute Printed Circuit Board! (+drill time)

  3. #3
    AtomSoft Excellent AtomSoft Excellent AtomSoft Excellent AtomSoft Excellent AtomSoft Excellent AtomSoft Excellent AtomSoft Excellent AtomSoft Excellent
    Join Date
    Feb 2008
    Location
    Brooklyn, NY US
    Posts
    3,584

    Can someone add this to a FAQ type post heh. I feel like creating a FAQ PDF. In fact i will heh this will surely be in it...

  4. #4
    Slorn Newbie
    Join Date
    Oct 2009
    Posts
    10

    Hi

    The following tutorial shows how to build your first project with MPLAB and the C18 compiler. It discusses all the little problems you can have compiling your first program with the C18 compiler, including the one above.

    http://www.dwengo.org/tutorials/blinking-leds

    Slorn
    Last edited by Slorn; 15th November 2009 at 10:01 AM.

  5. #5
    AtomSoft Excellent AtomSoft Excellent AtomSoft Excellent AtomSoft Excellent AtomSoft Excellent AtomSoft Excellent AtomSoft Excellent AtomSoft Excellent
    Join Date
    Feb 2008
    Location
    Brooklyn, NY US
    Posts
    3,584

    Thanks I'll take a look in a min

+ Reply to Thread

Similar Threads

  1. Pickit, MPLAB, C18
    By AtomSoft in forum Micro Controllers
    Replies: 3
    Latest: 14th November 2009, 04:07 AM
  2. MPLAB 820 linker issue
    By geko in forum Micro Controllers
    Replies: 4
    Latest: 16th March 2009, 03:34 PM
  3. math functions and mplab + c18
    By eng.alamin in forum Micro Controllers
    Replies: 0
    Latest: 6th October 2008, 06:29 PM
  4. C18 linker error.. Help please..
    By MrNobody in forum Micro Controllers
    Replies: 3
    Latest: 29th May 2008, 01:05 PM
  5. MPLAB C18 Libraries
    By Exo in forum Micro Controllers
    Replies: 2
    Latest: 26th July 2005, 07:33 PM

Tags for this Thread