Re: Why is it dangerous?



Ian Collins wrote:
Julian wrote:

Please advise my instructor says gcc is overly pedantic.

As Richard said, the opposite is true unless you invoke gcc with
the correct options. That's why it has a -pedantic option!

As a learner using gcc, you should use

gcc -ansi -Wall -pedantic

as a minimum set of options. Substitute '-std=c99' for '-ansi'
if you are learning C99.

Correction: That omits many useful tests. I suggest:

gcc -W -Wall -ansi -pedantic

for better error detection.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.


.



Relevant Pages

  • Re: Why is it dangerous?
    ... the opposite is true unless you invoke gcc with ... the correct options. ... As a learner using gcc, ...
    (comp.lang.c)
  • Re: Why is it dangerous?
    ... Please advise my instructor says gcc is overly pedantic. ... the opposite is true unless you invoke gcc with the ... correct options. ...
    (comp.lang.c)
  • Re: Serious compiler problem
    ... Martin Dickopp wrote: ... I have a very big problem with GCC (maybe this is wrong thread, ... >>saved it, and tried to compile again, and it suddenly gave me this. ... >to invoke gcc. ...
    (Debian-User)