View Single Post
  #3   Spotlight this post!  
Unread 02-02-2005, 19:47
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,799
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: WEIRD compiler error

Quote:
Originally Posted by Rickertsen2
I have a project that compiles just fine with older C18 versions, but
when i try to compile it under 2.4 i get the following errors:
C:\mcc18\h\p18f8520.h:169:Error [1109] type mismatch in redeclaration of 'PORTBbits'
C:\mcc18\h\p18f8520.h:201:Error [1109] type mismatch in redeclaration of 'PORTCbits'

My project does not even reference these files anywhere in code. It uses ifi_picdefs.h. Does anybody have any idea whatsoever how to fix this?
I think the problem might be that you have two files of different vintage.
p18f8520.h has to match ifi_picdefs.h, and p18f8520.h has probably changed from the earlier versions of C18.
See if there's a difference between the current default code's version of ifi_picdefs.h and the older one you're using.

P.S. p18f8520.h gets dragged in by the compiler based on the target PIC model called out by the "-p=18F8520" statement in the compile line.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 02-02-2005 at 20:00.