|
|
| Re: How to add the "-std=c99" option for gcc in Eclipse? [message #213011 is a reply to message #212988] |
Sat, 29 March 2008 15:17   |
|
Originally posted by: newsgroups.snipah.com
Warren Tang wrote:
> For example, when I wrote this code:
> for(int i = 0; i < 10; i++) {}
>
> The gcc compiler complained that
> ‘for’ loop initial declaration used outside C99 mode
>
Hi Warren,
Simply open the project preferences and add -std=c99 to Settings/C
Compiler/Miscellaneous/Other Flags
Enrico
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01805 seconds