| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | Re: compilartion error : label at end of compound statement |
| From: | Gowri Satish Adimulam <gowri@bitel.co.kr> |
| Date: | Mon, 27 Mar 2006 10:15:02 +0900 |
| In-reply-to: | <20060324081829.GA3170@linux-mips.org> |
| Organization: | Bitel Co Ltd |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20060216.234519.82087885.anemo@mba.ocn.ne.jp> <20060324.131809.115639866.nemoto@toshiba-tops.co.jp> <1143184072.3249.26.camel@localhost.localdomain> <20060324081829.GA3170@linux-mips.org> |
| Reply-to: | gowri@bitel.co.kr |
| Sender: | linux-mips-bounce@linux-mips.org |
Thanks every body
On Fri, 2006-03-24 at 08:18 +0000, Ralf Baechle wrote:
> On Fri, Mar 24, 2006 at 04:07:52PM +0900, Gowri Satish Adimulam wrote:
>
> > Hi ,
> > Iam trying to compile simple application with mips cross compiler ,
>
> You didn't say which one.
>
> (Fortunately it's obvious enough in this case)
>
> > Iam getting the below error ,
> > i tried to google but unable to find relavent solution
> >
> > any pointers will be helpful ,
> >
> > ===============error==========
> >
> > mipsel-linux-uclibc-gcc -Wall -c -o ls.o ls.c
> > ls.c: In function `donlist':
> > ls.c:591: error: label at end of compound statement
>
> Something like:
>
> switch (x) {
> case 3:
> }
>
> will result in this error message in C9x. Solution: insert a semicolon
> like:
>
> switch (x) {
> case 3:
> ;
> }
>
> The reason is that the C stanadard requires - and thus gcc since 3.4 (?) -
> a label to be followed by a statement and a semicolon alone is already
> an statement.
>
> Ralf
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Alchemy Au1550 Early Console, Mark Schank |
|---|---|
| Next by Date: | socket error, Gowri Satish Adimulam |
| Previous by Thread: | Re: compilartion error : label at end of compound statement, Ralf Baechle |
| Next by Thread: | Compilation problem with kernel 2.4.16, Krishna |
| Indexes: | [Date] [Thread] [Top] [All Lists] |