www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/14/16:10:30.1

From: "Tonni Schmücker" <Surfer AT private DOT dk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Newbie help request: -wall and prototyping
Date: Wed, 14 Jul 1999 21:37:35 +0200
Organization: Customer at Telia Danmark (http://www.telia.dk)
Message-ID: <7miov3$cn4$1@news101.telia.com>
References: <19990708162505 DOT 06504 DOT 00008761 AT ng-fo1 DOT aol DOT com>
NNTP-Posting-Host: t1o104p99.telia.com
X-Trace: news101.telia.com 931981091 13028 194.255.248.99 (14 Jul 1999 19:38:11 GMT)
X-Complaints-To: abuse AT telia DOT dk
NNTP-Posting-Date: 14 Jul 1999 19:38:11 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Lines: 70
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

the tutorial you mention from coronado enterprises..... where exactly can i
find it ???
thank you

Tonni Schmucker
DJCarterJr <djcarterjr AT aol DOT com> wrote in message
news:19990708162505 DOT 06504 DOT 00008761 AT ng-fo1 DOT aol DOT com...
> C and DJGPP gurus,
>
>      I recently downloaded the djgpp compiler and the tutorial from
Coronado
> enterprises, in an attempt to learn how to program in C.  I have patiently
> worked through all the examples, compiling and running all the programs
with no
> trouble until I got to Chapter 5, which discusses prototyping.  I think I
> understand the basic Idea of prototyping (declaring functions ahead of
time to
> check return values the actual functions return?), but I am having trouble
> getting gcc to check every program I write for prototyping.  (This is
> recommended in the tutorial, and I see It's value.)  While scanning
through the
> mail archives at www.delorie.com/djgpp I found many people with the same
> question.  The answer?  Use the -wall switch to enable most of the
prototyping
> checks when compiled.  I played around with this for a while, and
discovered
> that I could not compile a prog with this, but coule recompile(?) a
program
> with it.  For instance, I have the uncompiled source to a program, I will
call
> it myprog.c.  I type:
>
>      gcc -o -wall myprog.exe myprog.c
>
> on the command line in DOS and I get the error message:
>
>      gcc.exe: myprog.exe: No such file or directory (ENOENT)
>
> but if I compile with the command:
>
>      gcc -o myprog.exe myprog.c
>
> I get no error messages.  I can then recompile with the -wall switch (in
my
> first example) and get some error messages, but apparently it compiles the
> program.
>
> My questions are:
>
> 1.     Am I using the -wall switch correctly?  I really don't know DOS all
that
> well, and could be screwing up there.
>
> 2.     Can I configure something to use -wall automatically, without me
having
> to type it in every time I want to use it?
>
> 3.     Do I have the Idea behind protyping correct?  I am sure that I am
close,
> but not exactly right.
>
>
> Thanks in Advance,
> Carter
> (Please e-mail reply, in addition to posting.  I will check both
frequently.)
>
>


- Raw text -


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