This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/2177] strtof and strtold gives garbage results


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]