🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #17400

Re: ANSI opties voor GCC compiler.

#17400
From: Wim Dumon
Date: Mon, 20 Dec 1999 00:00
27 lines
1444 bytes
Andy Peeters wrote:
> 
> Hi,
> 
> Ik wens een zelfgeschreven C programma te compileren met GCC.
> Kan iemand mij vertellen welke opties ik aan GCC moet meegeven
> zodat de source wordt gecontroleerd volgens de ANSI C standaard.
> (met ook de juiste warnings.)
> 
Gebruik de volgende opties:
-Wall (alle warnings, altijd interessant)
-ansi (gedraag u ansi C compatible)
-pedantic (wees streng, laat geen gnu extensies toe)

Uit de handleiding over -pedantic:
 This option is not intended to be useful; it exists only to satisfy
 pedants who would otherwise claim that GNU CC fails to support the
 ANSI standard.

 Some users try to use `-pedantic' to check programs for strict ANSI
 C conformance.  They soon find that it does not do quite what they
 want: it finds some non-ANSI practices, but not all--only those
 for which ANSI C _requires_ a diagnostic.


Groetjes,
Wim.
Technical Details
Message-ID: <385DF1FF.161F94B6@easics.be>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <83isrt$2rl$1@news0.skynet.be>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcea4,ec04ddfb229c05fa
X-Google-Attributes: gidfcea4,public
From: Wim Dumon <wim@easics.be>
Subject: Re: ANSI opties voor GCC compiler.
Date: 1999/12/20
Message-ID: <385DF1FF.161F94B6@easics.be>
X-Deja-AN: 562923330
Content-Transfer-Encoding: 7bit
References: <83isrt$2rl$1@news0.skynet.be>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Easics nv, Leuven, Belgium, http://www.easics.com
Mime-Version: 1.0
Newsgroups: be.comp.programming