Go to Post Maybe FRC WILL casue world peace, who knows, eh ? - Tottanka [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2007, 16:40
cgront's Avatar
cgront cgront is offline
Registered User
None #0159
Team Role: Operator
 
Join Date: Jan 2006
Rookie Year: 2000
Location: blah blah
Posts: 5
cgront is an unknown quantity at this point
It won't build anymore

Up until today, our code was building fine. Now on two laptops both with our modified code, and default code that we just downloaded, we're getting an error:
c:\mcc18\h\stdio.h:26:Error: syntax error

We didn't make any changes to stdio.h so I'm not sure what's going on.
Any suggestions would be great.
Thanks
__________________
some of Murphy's Laws of Computing


1)When computing, whatever happens, behave as though you meant it to happen.

  #2   Spotlight this post!  
Unread 02-02-2007, 17:20
xrabohrok's Avatar
xrabohrok xrabohrok is offline
hunter of errors
FRC #1208 (The Metool Brigade)
Team Role: Programmer
 
Join Date: Jan 2006
Location: O'Fallon
Posts: 62
xrabohrok is an unknown quantity at this point
Re: It won't build anymore

Where does the compiler take you in the code when you double click the error? If it references to somewhere in stdio.h itself, then you are using an instance of one of it's functions wrong. printf is wierd, it doesn't work with mplab like it does other compilers do, if that helps.
__________________
"It's programming's fault" may be a viable excuse for just about everything, except the robot falling apart.

It will 'cause it can!

constants aren't. variables won't.
  #3   Spotlight this post!  
Unread 02-02-2007, 17:24
Ctrl Alt Delete's Avatar
Ctrl Alt Delete Ctrl Alt Delete is offline
Code Monkey
AKA: David Weitz
FRC #0177 (Bobcats)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Connecticut
Posts: 89
Ctrl Alt Delete is a splendid one to beholdCtrl Alt Delete is a splendid one to beholdCtrl Alt Delete is a splendid one to beholdCtrl Alt Delete is a splendid one to beholdCtrl Alt Delete is a splendid one to beholdCtrl Alt Delete is a splendid one to behold
Send a message via AIM to Ctrl Alt Delete Send a message via MSN to Ctrl Alt Delete
Re: It won't build anymore

Adding to xrabohrok said, printf doesn't seem to work outside of the default routines. Anything that isn't sent directly through the function that loops the code through the micro processor won't print anything. It seems to give those errors too.
__________________

Life lessons learned at robot:
1.) Never take apart power strips
2.) Sleep is required, but not essential to survival

Failure to abide by these lessons will result in headaches...and flaming pants.

"Here at Bobcat Robotics, we pride ourselves in having 60-table MySQL databases, girlfriend cookies, and a vinyl cutter." -Chris Jelly
  #4   Spotlight this post!  
Unread 02-02-2007, 17:26
Noah Kleinberg Noah Kleinberg is offline
Registered User
FRC #0395 (2TrainRobotics)
Team Role: Driver
 
Join Date: Jan 2006
Rookie Year: 2006
Location: New York
Posts: 196
Noah Kleinberg is a splendid one to beholdNoah Kleinberg is a splendid one to beholdNoah Kleinberg is a splendid one to beholdNoah Kleinberg is a splendid one to beholdNoah Kleinberg is a splendid one to beholdNoah Kleinberg is a splendid one to behold
Send a message via AIM to Noah Kleinberg
Re: It won't build anymore

Sounds like you have the same problem addressed in this thread. Check the lines right before "#include <stdio.h>", you've probably got a random letter right before it.

By the way, try searching next time... A search for "stdio.h syntax error" got the thread I linked to above

Last edited by Noah Kleinberg : 02-02-2007 at 17:26. Reason: I thought size 1 would make it smaller...
Closed Thread


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
Pluto not a planet anymore Hiteak Math and Science 50 20-09-2006 23:14
It's not the EduBot anymore! ahecht Robotics Education and Curriculum 11 29-04-2004 21:09
Goal blocking your corral? Not a problem anymore Ricky Q. Rules/Strategy 15 04-04-2004 17:38
EDU won't power up. actorindp Robotics Education and Curriculum 4 12-02-2004 22:20


All times are GMT -5. The time now is 15:31.

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