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