This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/2177] strtof and strtold gives garbage results
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 19 Jan 2006 07:46:34 -0000
- Subject: [Bug libc/2177] strtof and strtold gives garbage results
- References: <20060119064926.2177.bje@sources.redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jakub at redhat dot com 2006-01-19 07:46 -------
That's user error. Please study
info libc 'Feature Test Macros'
As strtof and strtold are new in ISO C99, unconditional strtof/strtold
prototypes would violate a bunch of older standard namespace requirements
for stdlib.h.
So you need to tell glibc to use a namespace that includes these, which means
one of -std=c99, -std=gnu99, -D_ISOC99_SOURCE, -D_ISOC9X_SOURCE,
-D_XOPEN_SOURCE=600 or -D_GNU_SOURCE.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=2177
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.