Mail Archives: djgpp/1995/10/08/22:52:06
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 -