That’s the error I got while trying to build (compile) the DEFAULT code! I did not modify the picdefs header file so I don’t know why this error would come up. Did I install the program wrong or something? I also tried compiling the camera code from the innovation first website and it isn’t working. Did anyone sucessfully download and use the camera code yet?
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:
Install MPLAB IDE v7.00
Install C18 v2.4 compiler
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.
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