![]() |
Need Help: Build/Make Error
I'm not the programmer for the team, but none of them signed up for an account at Chief Delphi -- so I'm posting for them.
We get the following error when we try to compile the program using MPLAB... 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 "ifi_utilities.c" -fo="ifi_utilities.o" /i"C:\mcc18\h" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa- 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 We've searched and searched and found no-one else referring to this error (probably a stupid mistake). We DO have the include and library directory set up in Project-->Build Options-->Project (C:\mcc18\h and C:\mcc18\lib), it just won't work =\. Any help would be greatly appreciated! Thanks, Greg Zanone and Team 637 |
Re: Need Help: Build/Make Error
Quote:
Line 1288 is designed to give you an error if the ifi_picdefs.h file has been loaded more than once (BANKED = 1). However, I am not sure how you did it... Regards, |
Re: Need Help: Build/Make Error
Quote:
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_This is what a successful compile of that default code should look like: Code:
Deleting intermediary files... done. |
Re: Need Help: Build/Make Error
Thanks, I'll see if this helps after school tomorrow. We've been going bonkers trying to figure out what was wrong lol. :ahh:
Thanks, Greg |
Re: Need Help: Build/Make Error
Quote:
There's a more reasonable explaination I brushed over. You may have defined BANKED somewhere in your code. e.g., Code:
#define BANKED 999This would conflict with the #define BANKED IFI created in ifi_defpics.h. You have to make sure you don't declare macros, variables, routines, etc. by the same name used elsewhere. If this is what you did, you'd normally get a duplicate declaration error, but you happened to pick a define that's used for an error check and got that error message first. |
Re: Need Help: Build/Make Error
I counted the characters in the path/file name and you should be fine, but just as a possiblilty, you may be exceeding the 64 character limit on the path/file name in some other file. It probably isn't that, but if all else fails... :)
|
Re: Need Help: Build/Make Error
Ok I'm at school now, we tried downloading the files over again, and this time we have a different error:
Code:
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-Code:
Generate_Pwms(pwm13,pwm14,pwm15,pwm16);We're seriously having problems considering nothing was changed... |
Re: Need Help: Build/Make Error
Quote:
|
Re: Need Help: Build/Make Error
Quote:
What default code are you using and which controller? The code looks like the FRC default code. If you are loading the FRC default code onto the FRC then you might be missing a macro setting in MPLAB. In MPLAB go to Project -> Build Options... -> Project Click the "MPLAB C18" tab on the pop-up window that appears. and see if "_FRC_BOARD" is defined under Macro definitions. If not, click on "Add" and type in "_FRC_BOARD", click OK, close the pop-up windows and try building again. |
Re: Need Help: Build/Make Error
Loaded C:\FIRST 2004\FIRST 2004.cof
BUILD SUCCEEDED: Wed Feb 04 10:54:12 2004 Thanks ^_^ :D :D Team 637 |
| All times are GMT -5. The time now is 04:16. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi