+ Post New Thread
Results 1 to 6 of 6
  1. #1
    Junior Member level 2
    Points: 1,368, Level: 8

    Join Date
    May 2006
    Posts
    22
    Helped
    0 / 0
    Points
    1,368
    Level
    8

    mplab c18

    i get this compiller error

    Clean: Deleting intermediary and output files.
    Clean: Deleted file "C:\MCHPFSUSB\fw\Cdc\MCHPUSB.mcs".
    Clean: Done.
    Executing: "C:\Archivos de programa\MCC18\bin\mcc18.exe" -p=18F4550 /i"C:\Archivos de programa\MCC18\mcc18\src\inc" "main.c" -fo="C:\ARCHIV~1\MCC18\mcc18\temp\main.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
    C:\MCHPFSUSB\fw\Cdc\main.c:38:Error [1027] unable to locate 'p18cxxx.h'
    Halting build on first failure as requested.
    BUILD FAILED: Fri Jun 23 09:37:57 2006



    what is this option in image mean ????

    •   AltAdvertisment

        
       

  2. #2
    Full Member level 3
    Points: 2,495, Level: 11

    Join Date
    Feb 2006
    Posts
    172
    Helped
    26 / 26
    Points
    2,495
    Level
    11

    mplab cdc

    Currently, your C18 can not find the header file 'p18cxxx.h' in the include path:
    /i"C:\Archivos de programa\MCC18\mcc18\src\inc" you gave it.
    That path should read: /i"C:\Archivos de programa\MCC18\mcc18\h", and you can do that by going to Project > Build Options ... > Project, and tab General, browse to that folder for the Include Path, ($INCDIR) text field.

    The options in the your image are for optimizations.

    Cheers,



    •   AltAdvertisment

        
       

  3. #3
    Junior Member level 2
    Points: 1,368, Level: 8

    Join Date
    May 2006
    Posts
    22
    Helped
    0 / 0
    Points
    1,368
    Level
    8

    mplab unable to locate

    thanx namqn ,

    i can't find a folder called inc ...

    Where should it be located , and whats related to...

    Thanx for the help...



    •   AltAdvertisment

        
       

  4. #4
    Full Member level 3
    Points: 2,495, Level: 11

    Join Date
    Feb 2006
    Posts
    172
    Helped
    26 / 26
    Points
    2,495
    Level
    11

    p18cxxx.h

    No, you don't need the folder called 'inc' (apparently, it does not exist).

    You need to use the Browse button, and browse to the folder named 'h', in your mcc18 folder. In my computer, it looks like: 'D:\Microchip\MCC18\h'. It is the folder of header files (.h files).

    Cheers,



  5. #5
    Junior Member level 2
    Points: 1,368, Level: 8

    Join Date
    May 2006
    Posts
    22
    Helped
    0 / 0
    Points
    1,368
    Level
    8

    error [1027] mcc18

    apparently , you can have more than one directory for your include files ... separating the by a ;

    i did this , and it worked
    C:\Archivos de rograma\mcc18\h;C:\MCHPFSUSB\fw\Cdc



    •   AltAdvertisment

        
       

  6. #6
    Newbie level 3
    Points: 817, Level: 6

    Join Date
    Oct 2008
    Posts
    3
    Helped
    0 / 0
    Points
    817
    Level
    6

    mplab ide c18 cannot locate include

    i am having the problem as well...how to solve it? i cant find any "general" tab under build options>project...help!!!

    Added after 14 minutes:

    Problem solved...the name of the header must exactly as in the header folders. e.g in folder "p16f877.h", in the code #include



--[[ ]]--