View Single Post
  #6   Spotlight this post!  
Unread 02-02-2005, 21:37
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: WEIRD compiler error

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
__________________
1139 Alumni