Re: 'for' loop initial declaration used outside C99 mode
Re: 'for' loop initial declaration used outside C99 mode
- Subject: Re: 'for' loop initial declaration used outside C99 mode
- From: "Vigour Vigour" <email@hidden>
- Date: Sun, 26 Jan 2003 12:55:02 +0000
Thanks Andrew :-)
From: Andrew Pinski <email@hidden>
To: "Vigour Vigour" <email@hidden>
CC: Andrew Pinski <email@hidden>, email@hidden
Subject: Re: 'for' loop initial declaration used outside C99 mode
Date: Sun, 26 Jan 2003 04:41:45 -0800
you tried something like this and the compiler's default a C89 compiler
with extensions:
int main()
{
int t = 0;
for(int i = 0;i < 10;i++) {
t+=i;
}
return t;
}
The `int i' inside the `for' is only available in C99, not in C89.
Thanks,
Andrew Pinski
On Sunday, Jan 26, 2003, at 04:31 US/Pacific, Vigour Vigour wrote:
I get this error message all the time when trying to build. What does this
really mean?
'for' loop initial declaration used outside C99 mode
Best regards Peter
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.