bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [POLL] C99, declaration after statement


From: Paul Eggert
Subject: Re: [POLL] C99, declaration after statement
Date: Sat, 24 Sep 2011 23:09:53 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Thunderbird/3.1.13

On 09/24/11 22:31, Gary V. Vaughan wrote:
> $ cc -o hello hello.c
> cc-1241 cc: ERROR File = hello.c, Line = 7
>   A declaration cannot appear after an executable statement in a block.

You're supposed to use cc's -c99 flag, no?
Or compile with c99?  Then declarations after statements
should work; see, for example
<http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00241.html>.

Is 'configure' not doing this for you automatically?
If so, then let's fix that.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]