LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-06-2006, 11:23 AM   #1
mihireng
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Rep: Reputation: 0
syntax error at the end of input


I have one program and when I try to copile it using the make file it
is giving me an error: Syntax error at the end input.... I am getting
two warnings before this error which says "Warning: no previous
prototype for slmics_creare" I have this function defined very well....
So is the error because of these warnings or what????

But I am not finding any syntax error at the end .....

Can any one please help.... I even not understanding what sohuld I
include to give you good idea about from where the problem is coming so please let me know.....
 
Old 07-06-2006, 12:43 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
warnings shouldnt prevent you from compiling.. whats the exact 'error' message?
is the function defined in the file before it is called?
could you paste the source code?
 
Old 07-06-2006, 04:25 PM   #3
mihireng
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nadroj
warnings shouldnt prevent you from compiling.. whats the exact 'error' message?
is the function defined in the file before it is called?
could you paste the source code?

Exact error is "scm_main.c 295 : error : syntax error at end of input"

And 295 is the end of file
 
Old 07-06-2006, 07:46 PM   #4
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
Quote:
is the function defined in the file before it is called?
could you paste the source code?
did you download this program online? if so could you provide a link?
 
Old 07-06-2006, 10:08 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,665
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
Missing quote-mark someplace, probably...

You see, an error-message like that doesn't tell you where the actual error is .. it tells you where the parser discovered it.

Go look somewhere in the vicinity of where those warnings are popping up ... or maybe near "the definition of slmics_creare."

Go look somewhere near to whatever you were editing just before the error-message cropped up for the first time.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sntax error at the end of input mihireng Programming 2 07-07-2006 10:45 AM
"Input/output error" on files at end of CD mfeat Linux - Software 2 11-23-2005 02:01 PM
line of programming that keeps giving a syntax error at end of input mshinska Programming 1 10-03-2005 08:49 PM
got a syntax error which shows unexpected end of line when tried to run a shell scrip racer_mec Linux - Newbie 1 01-10-2005 01:43 AM
C++ syntax error before :: token HELP, i cant find the syntax error :( qwijibow Programming 2 12-14-2004 06:09 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration