View Single Post
  #2   Spotlight this post!  
Unread 01-12-2008, 11:05
MarkO's Avatar
MarkO MarkO is offline
Registered User
AKA: Mark D. Overholser
FRC #0957 (WATSON Robotics team)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Albany, Oregon, USA
Posts: 17
MarkO is an unknown quantity at this point
Re: Generic error in MPLAB

Quote:
Originally Posted by domoarigato View Post
OKAY Update.

Oddly, one of my programmers (a rookie like most of us here) went in and randomly deleted one of the quotation marks in the code as you all suspected.

Old error is gone! Only to let another surface...

now, I get:

Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\mcc18\bin\mcc18.exe" -p=18F8722 "main.c" -fo="main.o" -D_FRC_BOARD -D_LARGE_CODE -D_DONT_USE_TMR0 -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\working\main.c:14:Error: syntax error
Halting build on first failure as requested.
BUILD FAILED: Mon Dec 01 09:45:22 2008

I am guessing that the build settings are off, due to the fact that I am getting a message that says "DONT_USE". haha

Any Ideas how to fix this?

...Oh, and the first 21 lines of my code read:

Code:
/*******************************************************************************
* FILE NAME: main.c <FRC VERSION>
*
* DESCRIPTION:
*  This file contains the main program loop.
*
* USAGE:
*  You should not need to modify this file.
*  Note the different loop speed for the two routines:
*     Process_Data_From_Master_uP
*     Process_Data_From_Local_IO
*******************************************************************************/

#include "ifi_aliases.h";
#include "ifi_default.h";
#include "ifi_utilities.h";
#include "user_routines.h";

tx_data_record txdata;          /* DO NOT CHANGE! */
rx_data_record rxdata;          /* DO NOT CHANGE! */
packed_struct statusflag;       /* DO NOT CHANGE! */


The error is on line # 14, there are no Semicolons at the end of the #include lines. Look at the #include lines from my previous post, of the code from the ifi_utilities.c file. If you fix Line #14, the error will move to Line #15 and so on.

Code:
DO THIS 

#include "ifi_aliases.h"
#include "ifi_default.h"
#include "ifi_utilities.h"
#include "user_routines.h"

VERSES THIS 


#include "ifi_aliases.h";        // #14
#include "ifi_default.h";       // #15
#include "ifi_utilities.h";     // #16
#include "user_routines.h";    // #17