View Single Post
  #6   Spotlight this post!  
Unread 10-01-2005, 14:10
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,785
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: MPLAB build error

Quote:
Originally Posted by cabbagekid2
I haven't changed anything to the default code. I'll try downloading the default code again to see if I accidentally modified it. I also want to try uninstalling the programs and reinstalling them later on today. Here's the steps that I followed:

1) Install MPLAB IDE v7.00
2) Install C18 v2.4 compiler
3) Install IFI Loader (newest one from innovation first)

Are these the steps that you guys followed?

Also, just a question, what does this do exactly.. #define __ifi_picdefs_h_?
I see the #define _"filename"_ command at the top of every header file.
The installation order is the same I followed.

The sequence:
Code:
#ifndef __ifi_picdefs_h_
#define __ifi_picdefs_h_
is to prevent the include file from being loaded twice by the file that's being compiled. The first time the file is loaded that #define doesn't exist, so if the compiler sees that file loaded a second time (when the #define has now been declared) it knows to skip over the whole include because it's already been done. This is typically a potential issue when you use nested includes.

You're getting your problem when ifi_utilities.c pulls in ifi_default.h (via the include statement) which in turn includes ifi_picdefs.h
This shouldn't be a problem, but what seems to be happening is that something is remembering the define BANKED (used only within ifi_picdefs.h) from the previous compile of ifi_startup.c
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 10-01-2005 at 14:21.