Error Syntax Error At End Of Input Mplab
Visited Search Results View More Blog Recent Blog Posts View More PMs Unread PMs Inbox Send New PM View More Page Extras Menu Forum Themes Elegant Mobile Home » All Forums » [16 bit Microcontrollers & syntax error at end of input postgresql Digital Signal controllers] » PIC24 Topics » syntax error at end of input Mark syntax error at the end of input c Thread UnreadFlat Reading Mode❐ syntax error at end of input Author Post Essentials Only Full Version AlainC New Member Total Posts : 19 Reward points : 0 Joined: 2009/06/05 07:52:16Location: 0 Status: offline 2009/06/20 10:56:04 (permalink) 0 syntax error at end of input Hi Everyone! I get this error message >> syntax error at end of input << what does that mean and were can i find a list of all error messages in C30 compiler. thanks AC #1 4 Replies Related Threads friesen Super Member Total Posts : 1459 Reward points : 0 Joined: 2008/05/08 05:23:35Location: Indiana, USA Status: offline RE: syntax error at end of input 2009/06/20 11:36:30 (permalink) 0 It probably means you forgot a } or { somewhere. Erik Friesen #2 AlainC New Member Total Posts : 19 Reward points : 0 Joined: 2009/06/05 07:52:16Location: 0 Status: offline RE: syntax error at end of input 2009/06/20 14:14:07 (permalink) 0 OK thanks i will verify this!! #3 leon_heller Super Member Total Posts : 6410 Reward points : 0 Joined: 2004/08/17 13:19:45Location: St. Leonards-on-Sea, E. Sussex, UK. Status: offline RE: syntax error at end of input 2009/06/20 14:17:54 (permalink) 0 See the C30 documentation for a list of errors. Leon Leon HellerG1HSM #4 RISC Super Member Total Posts : 2900 Reward points : 0 Status: online RE: syntax error at end of input 2009/06/20 15:58:09 (permalink) 0 Hi, C30 documentation can be accessed directly from MPLAB : Help > Topics > or alternately in this directory : c:\Program Files\Microchip\MPLAB C30\docs\hlpMPLABC30.chm regards #5 Jump to: Jump to - - - - - - - - - - [Development Tools] - - - - MPLAB X IDE - - - - MPLAB Xpress - - - - MPLAB 8 IDE - - - - MPLAB Harmony - - - - MPLAB X IPE - - - - MPLAB® Code Configurator - - - - MPLAB REAL ICE - - - - MPLAB ICD In Circuit Debuggers - - - - MPLAB Simulator - - - - MPASM, MPLINK, MPLIB (assembler, linker, librarian) - - - - MPLAB XC8
Programming Boards C Programming "Syntax error at end of input" Getting started with C or C++ | C Tutorial | C++ Tutorial | C and C++ FAQ | Get a compiler | Fixes for common problems Thread: "Syntax error at end of input" Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 08-05-2007 #1 yougene View Profile View Forum Posts Registered User Join Date May 2006 Posts 182 "Syntax http://www.microchip.com/forums/m430922.aspx error at end of input" When I try to compile this code it tells me there is a "syntax error at end of input" at line 21. This makes no sense to me, the code is as simple as it can be. What's going on here? Code: #include
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring http://stackoverflow.com/questions/8707857/error-expected-declaration-or-statement-at-end-of-input-in-c developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up error: expected declaration or statement at end of input in c up vote 13 down vote favorite 3 void mi_start_curr_serv(void){ #if 0 //stmt #endif } I'm getting an error as "error: expected syntax error declaration or statement at end of input" in my compiler. I could not find any error with the above function. Please help me to understand this error. c share|improve this question asked Jan 3 '12 at 4:15 Angus 2,964195495 ; (And a few other characters to make SO happy) –Hot Licks Jan 3 '12 at 4:18 2 If that's the exact code, then no idea. That's an empty function and should compile without problems. Is there anything syntax error at else you're not showing? :P –Ricardo Cárdenes Jan 3 '12 at 4:24 5 Now, if there's more code, you may find there's some } missing somewhere... –Ricardo Cárdenes Jan 3 '12 at 4:27 1 I often copy and paste method signatures to the top of my code when forward declaring. I remember a couple of instances where I forgot to replace the '{' with ';' in the forward declaration. You may want to look there too (for future people seeing this post). –Wilson Dec 6 '14 at 7:10 1 how this thing had so many upvotes, really –mou Aug 2 at 7:40 | show 4 more comments 3 Answers 3 active oldest votes up vote 44 down vote accepted Normally that error occurs when a } was missed somewhere in the code, for example: void mi_start_curr_serv(void){ #if 0 //stmt #endif would fail with this error due to the missing } at the end of the function. The code you posted doesn't have this error, so it is likely coming from some other part of your source. share|improve this answer edited Jan 3 '12 at 5:02 answered Jan 3 '12 at 4:28 DRH 5,1622133 4 Most probably an unbalanced } at the end of main. Otherwise there's a high chance of other errors. –Ricardo Cárdenes Jan 3 '12 at 4:31 5 Thanks.. I missed a } closing bracket in another function