Quote:
|
Originally Posted by ZeoFateX
C:\First\EDU_Default_Code_2003-12-15\ifi_picdefs.h:1288: *** Error - Invalid 18f8520 header file!
error 1 spawning c:\mcc18\bin\cpp18
Halting build on first failure as requested.
BUILD FAILED: Mon Feb 02 15:47:54 2004
|
Is this the unadulterated EDU default code?
As you can see from the error message, the error you are seeing is due to line 1288 in ifi_picdefs.h. It's finding that you've defined the macro BANKED when you shouldn't have. As you can see in ifi_defs.h BANKED is defined after this check. It's unclear how you were able to do this.
Possible explanations include:
- The files have been corrupted or modified in some way.
- You built a new project incorrectly or missed a file.
- You commented out the lines:
Code:
#ifndef __ifi_picdefs_h_
#define __ifi_picdefs_h_
AND included ifi_picdefs.h twice in one file.
This is what a successful compile of that default code should look like:
Code:
Deleting intermediary files... done.
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "ifi_utilities.c" -fo="ifi_utilities.o" /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "main.c" -fo="main.o" /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "printf_lib.c" -fo="printf_lib.o" /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "ifi_startup.c" -fo="ifi_startup.o" /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "user_routines.c" -fo="user_routines.o" /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "user_routines_fast.c" -fo="user_routines_fast.o" /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "c:\mcc18\bin\mplink.exe" /l"c:\mcc18\lib" "18f8520user.lkr" "C:\FIRST\EDU\EDU_Default_Code_2003-12-15\ifi_utilities.o" "C:\FIRST\EDU\EDU_Default_Code_2003-12-15\main.o" "C:\FIRST\EDU\EDU_Default_Code_2003-12-15\printf_lib.o" "C:\FIRST\EDU\EDU_Default_Code_2003-12-15\ifi_startup.o" "C:\FIRST\EDU\EDU_Default_Code_2003-12-15\user_routines.o" "C:\FIRST\EDU\EDU_Default_Code_2003-12-15\user_routines_fast.o" "C:\FIRST\EDU\EDU_Default_Code_2003-12-15\ifi_library.lib" /m"EduCode.map" /o"EduCode.cof"
MPLINK 3.40, Linker
Copyright (c) 2003 Microchip Technology Inc.
Errors : 0
MP2COD 3.40, COFF to COD File Converter
Copyright (c) 2003 Microchip Technology Inc.
Errors : 0
MP2HEX 3.40, COFF to HEX File Converter
Copyright (c) 2003 Microchip Technology Inc.
Errors : 0
Loaded C:\FIRST\EDU\EDU_Default_Code_2003-12-15\EduCode.cof
BUILD SUCCEEDED: Mon Feb 02 16:26:37 2004