c99 & terminal

Hi all,

my problem is that when I compile with terminal using "gcc filename" I think that the standard used by the terminal is c89, because for example if I write a loop whith a variable declared inside, the terminal give me an error writing "a.c:4: error: ‘for’ loop initial declaration used outside C99 mode", so the question is how can I set the terminal to make he compile me using standard c99?

Thanks in advance.

A.

MacBook, Mac OS X (10.6.7)

Posted on Apr 2, 2012 5:45 AM

Reply
5 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

c99 & terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.