www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/10/08/22:52:06

Xref: news-dnh.mv.net comp.os.msdos.djgpp:2491
Path: news-dnh.mv.net!mv!news.sprintlink.net!news.uoregon.edu!waikato!not-for-mail
From: jpg AT cs DOT waikato DOT ac DOT nz (J P Griffiths)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Prototype Checking
Date: 8 Oct 1995 23:13:56 GMT
Organization: The University of Waikato
Lines: 15
Sender: jpg AT waikato DOT ac DOT nz
References: <DG2uJt DOT 5Kp AT jade DOT mv DOT net>
Reply-To: jpg AT waikato DOT ac DOT nz
Nntp-Posting-Host: lucy.cs.waikato.ac.nz
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

Nathan L. Cutler (library AT ssd DOT anet DOT cz) wrote:
: I am going through a C tutorial that is very good but quite old.  One of the
: things it is telling me to do is to enable prototype checking with my
: compiler.  I am using djgpp.  (1) is it actually necessary to turn on proto-
: type checking with gcc? and (2) what is the command-line extension to do so?

If you define a prototype and include it,  gcc will spit at you if the types
are wrong,  without prompting.  If you want it to spit at you for not 
including prototypes,  or just like having your every mistake 
highlighted,  use the -Wall flag to turn on all except a few esoteric 
warnings.  Compiler parameters are discussed in the online info browser 
that came with djgpp (if you downloaded it).

Hope this helps,
        Jon.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019