MCSP - Cannot find include file


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2007
    Posts
    53

    Default MCSP - Cannot find include file

    Hello,

    I had an OS crash with my laptop the other day and subsequently had to do a reload. I have re-installed MSCP, PBP and MPLAB.

    Now when I try to compile, i get a multitude of errors - the first line says:

    Error[105]c:\pbp\18f6520.inc 19 : Cannot open file (Include File "P18F6520.INC" not found)

    I have checked the include file does actually exist in the c:\pbp folder. I think the rest of the errors are due to the include file not being found.

    I also tried another program with a 16F88 and I get a similar result.

    I have checked the path to the compiler and assembler are correct under "Compile and Program Options" within MCSP.

    I have tried to unistall and re-install MCSP, PBP and MPLAB a few times now and I still get the error. I feel I have missed something somewhere - can anyone help out?

    MCSP 3.0.0.0
    PBP 2.46
    MPLAB 7.11

    Thanks,

    Andy

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Andy Wood View Post
    Error[105]c:\pbp\18f6520.inc 19 : Cannot open file (Include File "P18F6520.INC" not found)

    I have checked the include file does actually exist in the c:\pbp folder. ...
    Hi Andy,

    If it's in your PBP folder, then it's in the wrong place.

    P18F6520.INC should be in the C:\Program Files\Microchip\MPASM Suite folder. (unless you installed it in a different location)

    I have checked the path to the compiler and assembler are correct under "Compile and Program Options" within MCSP.
    Is the assembler pointing to the same folder as above?

    Sometimes using the find automatically button will find the wrong one.
    <br>
    DT

  3. #3
    Join Date
    Apr 2007
    Posts
    53


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    Hi Andy,

    If it's in your PBP folder, then it's in the wrong place.

    P18F6520.INC should be in the C:\Program Files\Microchip\MPASM Suite folder. (unless you installed it in a different location)


    Is the assembler pointing to the same folder as above?

    Sometimes using the find automatically button will find the wrong one.
    <br>
    Darrell - you are correct! (again!). The "find automatically" didn't. Now that it is pointing to the correct folder it is all working as it should. Thanks a million for your help - I owe you a beer or two..........

    Andy

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    WooHoo! Lucky guess.

    But I'll still take the Beer.
    <br>
    DT

Similar Threads

  1. Continuous Interrupts when using DT_INTS and an INCLUDE file
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 15th January 2010, 21:42
  2. Replies: 2
    Last Post: - 19th November 2009, 23:44
  3. can't find include file!
    By jimbostlawrence in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 10th November 2009, 08:44
  4. Can't find T1_INT8K.INC timer include file
    By p15218 in forum General
    Replies: 2
    Last Post: - 26th August 2008, 01:08
  5. The ultimate include file
    By bearpawz in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 26th January 2007, 19:35

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts