"#include" error in mplab

Thread Starter

Tahmid

Joined Jul 2, 2008
343
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:
 

Thread Starter

Tahmid

Joined Jul 2, 2008
343
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.
 
Top