Go to Post Maybe FIRST made these bumper rules so IRI would have something to blow off come July. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #10   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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MPLab build error Derek t Programming 7 17-01-2005 09:33
MPLAB build error cabbagekid2 Programming 7 12-01-2005 13:36
MPLAB IDE 6.60 Error mchan1111 Programming 8 08-11-2004 20:17
MPlab error ryan_f Programming 9 24-05-2004 07:30
Mplab startup error Team 869 Programming 6 25-01-2004 10:41


All times are GMT -5. The time now is 19:26.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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