J
jaysome
But you are not stuck with it. "-W -Wall -ansi -pedantic" converts
gcc into a standard C compiler. As I suspect you know.
I thought one of ANSI or ISO adopted the C standard in 1989 and the
other adopted it in 1990. So isn't "-ansi -pedantic" sufficient to
cover both? Are the "-W -Wall" options necessary to put gcc into a
stadnard C compiler mode?
And what is different between just "-ansi" and just "-pedantic"? And
why is it called "-pedantic"--why not call it "-iso" if that is what
it really is?
When a reference to C90 is made in this newsgroup, does it mean ANSI C
or ISO C or both?
Given all of these reasonable questions, how is any reasonable person
expected to know that "-W -Wall -ansi -pedantic" instead of just
"-ansi -pedantic" or something else (e.g., "-stdc") converts gcc into
a standard C compiler? Reading the gcc manual a couple of times
doesn't really clarify things. I guess YMMV.
Regards