Re: Why is it dangerous?
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Sat, 09 Aug 2008 23:29:59 -0400
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.
.
- Follow-Ups:
- Re: Why is it dangerous?
- From: santosh
- Re: Why is it dangerous?
- References:
- Why is it dangerous?
- From: Julian
- Re: Why is it dangerous?
- From: Ian Collins
- Why is it dangerous?
- Prev by Date: Re: Why is it dangerous?
- Next by Date: Re: where do the automatic variables go ?
- Previous by thread: Re: Why is it dangerous?
- Next by thread: Re: Why is it dangerous?
- Index(es):
Relevant Pages
|