Date: Tue, 21 Jan 1997 09:15:52 +0200 (IST) From: Eli Zaretskii To: "Colin W. Glenn" cc: djgpp AT delorie DOT com Subject: Re: Am I forgetting an include or something? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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!).