Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Error in header file p18f8520.h !!! (http://www.chiefdelphi.com/forums/showthread.php?t=32942)

RbtGal1351 17-01-2005 14:32

Error in header file p18f8520.h !!!
 
Ok i know that this is a strange build error... but when i compiled/ built the default code (not the camera version) i got this error:

Quote:

Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "main.c" -fo="main.o" /i"C:\mcc18\Compiler Stuff\h" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "user_SerialDrv.c" -fo="user_SerialDrv.o" /i"C:\mcc18\Compiler Stuff\h" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
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'

Halting build on first failure as requested.
BUILD FAILED: Mon Jan 17 11:25:20 2005
does any body please know how to fix this??? :confused:

THANK YOU IN ADVANCE!!
~Stephanie
Team 1351

Mike Betts 17-01-2005 15:00

Re: Error in header file p18f8520.h !!!
 
Stephanie,

When I compile the default code dated 1-7-2005, this is what I get:

Code:

Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\C_RC_Bot\FRC_DEFAULT_1_7_2005\main.o".
Clean: Deleted file "C:\C_RC_Bot\FRC_DEFAULT_1_7_2005\user_SerialDrv.o".
Clean: Deleted file "C:\C_RC_Bot\FRC_DEFAULT_1_7_2005\user_routines.o".
Clean: Deleted file "C:\C_RC_Bot\FRC_DEFAULT_1_7_2005\user_routines_fast.o".
Clean: Deleted file "C:\C_RC_Bot\FRC_DEFAULT_1_7_2005\printf_lib.o".
Clean: Deleted file "C:\C_RC_Bot\FRC_DEFAULT_1_7_2005\ifi_utilities.o".
Clean: Deleted file "C:\C_RC_Bot\FRC_DEFAULT_1_7_2005\ifi_startup.o".
Clean: Deleted file "FrcCode.cof".
Clean: Deleted file "FrcCode.cod".
Clean: Deleted file "FrcCode.hex".
Clean: Deleted file "FrcCode.lst".
Clean: Deleted file "C:\C_RC_Bot\FRC_DEFAULT_1_7_2005\FrcCode.mcs".
Clean: Done.
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "main.c" -fo="main.o" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "user_SerialDrv.c" -fo="user_SerialDrv.o" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "user_routines.c" -fo="user_routines.o" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "user_routines_fast.c" -fo="user_routines_fast.o" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "printf_lib.c" -fo="printf_lib.o" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "ifi_utilities.c" -fo="ifi_utilities.o" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8520 "ifi_startup.c" -fo="ifi_startup.o" -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:\mcc18\bin\mplink.exe" /l"C:\mcc18\lib" "18f8520user.lkr" "C:\C_RC_Bot\FRC_DEFAULT_1_7_2005\main.o" "C:\C_RC_Bot\FRC_DEFAULT_1_7_2005\user_SerialDrv.o" "C:\C_RC_Bot\FRC_DEFAULT_1_7_2005\user_routines.o" "C:\C_RC_Bot\FRC_DEFAULT_1_7_2005\user_routines_fast.o" "C:\C_RC_Bot\FRC_DEFAULT_1_7_2005\printf_lib.o" "C:\C_RC_Bot\FRC_DEFAULT_1_7_2005\ifi_utilities.o" "C:\C_RC_Bot\FRC_DEFAULT_1_7_2005\ifi_startup.o" "C:\C_RC_Bot\FRC_DEFAULT_1_7_2005\FRC_library.lib" /o"FrcCode.cof"
MPLINK 3.90, Linker
Copyright (c) 2004 Microchip Technology Inc.
Errors        : 0
MP2COD 3.90, COFF to COD File Converter
Copyright (c) 2004 Microchip Technology Inc.
Errors        : 0

You have a strange include path (not the default).

CJO 17-01-2005 15:27

Re: Error in header file p18f8520.h !!!
 
To further Mr. Betts comment, installing C18 in the default directory "C:\mcc18" seems to solve about 95% of compile errors.

RbtGal1351 17-01-2005 16:03

Re: Error in header file p18f8520.h !!!
 
thanks guys
i got it working... i had previously reorganized the mcc18 folder, and it didnt like it...
thanks again and happy programming
~Stephanie
Team 1351


All times are GMT -5. The time now is 02:47.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi