"#include" error in mplab

Discussion in 'Embedded Systems and Microcontrollers' started by Tahmid, Mar 27, 2009.

  1. Tahmid

    Thread Starter Active Member

    Jul 2, 2008
    344
    25
    Hi,

    I have used MPLAB v6.40, v7.30 and now v7.52. I program in assembly language. But I faced a problem with all the versions of MPLAB. Even after I include the header file like #include "pic18f4520.inc" I still have to declare the special function registers as MPLAB cannot detect the SFRs mentioned in the included header file. What is the problem? :confused:
     
  2. Tahmid

    Thread Starter Active Member

    Jul 2, 2008
    344
    25
    Hi all,
    Ultimately I could find the solution of my problem. The problem is with case.
    Instead of #include "p18f4520.inc", it should be #INCLUDE "P184520.INC" because
    MPASM is case sensitive.
     
Loading...