Quote:
|
Originally Posted by Mark McLeod
Looking more closely I'm not so sure that really is the answer.
I tried removing my p18f8520.h file, then compiling and my project didn't mind a bit that it was gone.
Maybe for some reason the old project is dragging that file in, but shouldn't be.
|
No you were right. I replaced ifi_picdefs.h with a copy of p18f8520.h, added the following code and now it works. I'm not really sure what that code snippet does, but it is includeed in ifi_picdefs and ifi_default checks to see if UNCHANGEABLE_DEFINITION_AREA is defined. If it is not, it throws an error. Everything works fine now. I am going to update the compiler on all my computers, and replace ifi_picdefs.h with the ifi_picdefs.h from the 2005 default code.
#if defined(BANKED)
#error *** Error - Invalid 18f8520 header file!
#else
#define UNCHANGEABLE_DEFINITION_AREA 1
#endif