delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/21/02:33:43

Date: Tue, 21 Jan 1997 09:15:52 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: "Colin W. Glenn" <cwg01 AT gnofn DOT org>
cc: djgpp AT delorie DOT com
Subject: Re: Am I forgetting an include or something?
In-Reply-To: <Pine.GSO.3.95.970119125358.28799D-100000@sparkie.gnofn.org>
Message-ID: <Pine.SUN.3.91.970121091226.26269K-100000@is>
MIME-Version: 1.0

On Sun, 19 Jan 1997, Colin W. Glenn wrote:

> | redir -e %4.err gcc -o %4.exe -l -Wall -v %4.c

Why do you put -l there?  I think that is the source of your trouble.  
Please remove it and try again, it should work.

> Well after examining the structure in DIR.H, I of course looked in the 
> LIBC.INF for the syntax of printf()ing a unsigned long and changed my 
> printf() statement to this:
> 
> |     printf("%U %s\n", f.ff_fsize, f.ff_name);

No, that's incorrect (please read the library reference about format 
specifiers).  The correct line should say this:

     printf("%lu %s\n", f.ff_fsize, f.ff_name);

(note that %U and %u are NOT the same!).

- Raw text -


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