| www.delorie.com/archives/browse.cgi | search |
| From: | "Matt Bayliss" <grebz AT hiddenemail DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Problems with printf() |
| Date: | Tue, 24 Apr 2001 15:14:06 +0100 |
| Organization: | (Posted via) GTS Netcom - Public USENET Service http://pubnews.netcom.net.uk |
| Lines: | 49 |
| Sender: | grebz AT crosswinds DOT net |
| Message-ID: | <9c4fod$psq$1@taliesin.netcom.net.uk> |
| NNTP-Posting-Host: | host213-122-210-176.btinternet.com |
| X-Trace: | taliesin.netcom.net.uk 988136014 26522 213.122.210.176 (24 Apr 2001 18:13:34 GMT) |
| X-Complaints-To: | abuse AT corp DOT netcom DOT net DOT uk |
| NNTP-Posting-Date: | Tue, 24 Apr 2001 18:13:34 +0000 (UTC) |
| X-Newsreader: | Microsoft Outlook Express 4.72.3110.1 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Hi there,
I'm using DJGPP (gcc version 2.95 19990728 (release) ) and when I try the
following statement:
printf("\nLength of string = %U\n", (strlen(buffer)) );
I get the error message:
strlen.c:16: warning: unknown conversion type character `U' in format
But reading the INFO file for printf in the standard C library there is this
line:
'U'
An unsigned long integer.
Whats going on here? Am I using the wrong include files or something?
I thought the following output may be useful.
D:\data\c>gcc -print-search-dirs
install: $DJDIR/lib/gcc-lib/djgpp/2.95/
programs:
d:/djgpp/bin/djgpp/2.95/;d:/djgpp/bin/;d:/djgpp/lib/gcc-lib/djgpp/2.95
/;d:/djgpp/lib/gcc-lib/djgpp/;/usr/lib/gcc/djgpp/2.95/;/usr/lib/gcc/djgpp/;d
:/dj
gpp/lib/gcc-lib/djgpp/2.95/$DJDIR/djgpp/bin/djgpp/2.95/;d:/djgpp/lib/gcc-lib
/djg
pp/2.95/$DJDIR/djgpp/bin/;d:/djgpp/bin/djgpp/2.95/;d:/djgpp/bin/
libraries:
d:/djgpp/lib/djgpp/2.95/;d:/djgpp/lib/;d:/djgpp/lib/gcc-lib/djgpp/2.9
5/;/usr/lib/gcc/djgpp/2.95/;d:/djgpp/lib/gcc-lib/djgpp/2.95/$DJDIR/djgpp/lib
/djg
pp/2.95/;d:/djgpp/lib/gcc-lib/djgpp/2.95/$DJDIR/djgpp/lib/;d:/djgpp/bin/djgp
p/2.
95/;d:/djgpp/bin/;d:/djgpp/lib/djgpp/2.95/;d:/djgpp/lib/;/lib/djgpp/2.95/;/l
ib/;
/usr/lib/djgpp/2.95/;/usr/lib/
Cheers!
Matt
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |