project building in MPLAB

Discussion in 'The Projects Forum' started by ect_09, Jul 1, 2012.

  1. ect_09

    Thread Starter Member

    May 6, 2012
    180
    1
    A.A
    i am using MPLAb and i am new with this.
    here is unknown error,
    i donot know what is it in when in build my project..

    i attached the output image..
    plz check this..
    Thanks
     
  2. nerdegutta

    Moderator

    Dec 15, 2009
    2,515
    785
    The linker cannot find the file: "c018i.o"
     
  3. ect_09

    Thread Starter Member

    May 6, 2012
    180
    1
    so what i do???
    am new...
    i cant understant.
     
  4. nerdegutta

    Moderator

    Dec 15, 2009
    2,515
    785
    Show us the source code.
     
  5. ect_09

    Thread Starter Member

    May 6, 2012
    180
    1
    its a simple code for testing .....
    /////////////////////////////////

    #include <P18F452.h>
    void MSDelay(unsigned int);
    void main(void)
    {
    TRISB = 0;
    while(1)
    {
    PORTB = 0x55;
    MSDelay(250);
    PORTB = 0xAA;
    MSDelay(250);
    }
    }
    void MSDelay(unsigned int itime)
    {
    unsigned int i; unsigned char j;
    for(i=0;i<itime;i++)
    for(j=0;j<165;j++);
    }
     
  6. ect_09

    Thread Starter Member

    May 6, 2012
    180
    1
    i have edit my source./header/linker script/lib
     
  7. nerdegutta

    Moderator

    Dec 15, 2009
    2,515
    785
    It's more friendly to read if we use the code-tags - the # in the to menu:):


    Code ( (Unknown Language)):
    1.  
    2. #include <P18F452.h>
    3. void MSDelay(unsigned int);
    4. void main(void)
    5. {
    6. TRISB = 0; 
    7. while(1)
    8. {
    9. PORTB = 0x55;
    10. MSDelay(250);
    11. PORTB = 0xAA;
    12. MSDelay(250);
    13. }
    14. }
    15. void MSDelay(unsigned int itime)
    16. {
    17. unsigned int i; unsigned char j;
    18. for(i=0;i<itime;i++)
    19. for(j=0;j<165;j++);
    20. }
    21.  
    The error says that it's a file missing, or not found. Which compiler are you using? Have you tried the free Hi Tech C?

    I guess you are trying to flash some LEDs?
     
  8. ect_09

    Thread Starter Member

    May 6, 2012
    180
    1
    am not installed free Hi Tech C.
    now i am installing....
    then see....
     
  9. nerdegutta

    Moderator

    Dec 15, 2009
    2,515
    785
    OK, good. What are you actually trying to do?
     
  10. ect_09

    Thread Starter Member

    May 6, 2012
    180
    1
    Thanks....
     
  11. ect_09

    Thread Starter Member

    May 6, 2012
    180
    1
    firstly i am trying to see the timers by using led.
    is there perfect timing for my sensor.
    so am doing for this.
    i want to make line tracking robot..
     
Loading...