www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/07/14:20:17

Xref: news2.mv.net comp.os.msdos.djgpp:4706
From: Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Why doesnt this work!
Date: Fri, 07 Jun 1996 10:59:48 +0100
Organization: Lehrstuhl fuer Stroemungsmechanik
Lines: 26
Message-ID: <31B7FD94.1CFB@LSTM.Ruhr-UNI-Bochum.De>
References: <4p3uct$h50 AT raffles DOT technet DOT sg> <4p3vv1$ocg AT news DOT cea DOT fr> <31B6438A DOT 4BEC9AE0 AT alcyone DOT com>
NNTP-Posting-Host: bvb.lstm.ruhr-uni-bochum.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Erik Max Francis wrote:

> The second problem was that of using printf in this manner.  The compiler has
> no way of knowing that the first parameter to the variable argument list is
> _supposed to be_ a float (it has the %f format specifier), when in actuality
> it is of integral type.  This is a Bad Thing.
> 
Just say  gcc -Wall (a little less will do, too, check the docs) and
the compiler will tell you a bunch of things you did wrong.
A brilliant switch for native speakers of PASCAL, like me ;-)

Ciao
Tom



*************************************************************
* Thomas Demmer                                             *
* Lehrstuhl fuer Stroemungsmechanik                         *
* Ruhr-Uni-Bochum                                           *
* Universitaetsstr. 150                                     *
* D-44780  Bochum                                           *
* Tel: +49 234 700 6434                                     *
* Fax: +49 234 709 4162                                     *
* http://www.lstm.ruhr-uni-bochum.de/~demmer                *
*************************************************************

- Raw text -


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