Re: Error: 'for' loop initial declaration used outside c99 mode
- From: Ian Collins <ian-news@xxxxxxxxxxx>
- Date: Fri, 03 Nov 2006 23:52:00 +1300
Richard Bos wrote:
james of tucson <jmcgill@[go_ahead_and_spam_me].arizona.edu> wrote:Severely hobble is going a bit far, just avoid the subset of C that
Pedro Pinto wrote:
When compiling my program i got this error:
Error: 'for' loop initial declaration used outside c99 mode
What is it and how can i solve it?
You're coming to C from a Java background, aren't you?
This is illegal in most C dialects; it is a legal C++ declaration, and
so may be accepted if you are compiling C with a C++ compiler:
Unless you severely hobble your C, that is not generally possible.
doesn't intersect with C++.
--
Ian Collins.
.
- Follow-Ups:
- Re: Error: 'for' loop initial declaration used outside c99 mode
- From: Richard Bos
- Re: Error: 'for' loop initial declaration used outside c99 mode
- References:
- Error: 'for' loop initial declaration used outside c99 mode
- From: Pedro Pinto
- Re: Error: 'for' loop initial declaration used outside c99 mode
- From: james of tucson
- Re: Error: 'for' loop initial declaration used outside c99 mode
- From: Richard Bos
- Error: 'for' loop initial declaration used outside c99 mode
- Prev by Date: Re: Cannot return values of char variable
- Next by Date: Re: Cannot return values of char variable
- Previous by thread: Re: Error: 'for' loop initial declaration used outside c99 mode
- Next by thread: Re: Error: 'for' loop initial declaration used outside c99 mode
- Index(es):
Relevant Pages
|
|