#1495 MinGW's stdlib.h declares strtod has static


MinGW seemingly defines in <stdlib.h> the function "strtod" as "static", which causes problems if one includes <stdlib.h> in a file where one declares also manually a

extern double strtod (const char *, char **);

The result looks than as follows:

/mingw/i586-pc-mingw32/sys-include -DHAVE_CONFIG_H -I.
-I../../../gcc-trunk/libquadmath -g -O2 -MT gdtoa/dmisc.lo -MD -MP -MF
gdtoa/.deps/dmisc.Tpo -c ../../../gcc-trunk/libquadmath/gdtoa/dmisc.c -o
In file included from ../../../gcc-trunk/libquadmath/gdtoa/gdtoaimp.h:186:0,
from ../../../gcc-trunk/libquadmath/gdtoa/dmisc.c:32:
c:/MinGW/include/stdlib.h:319:1: error: static declaration of 'strtod'
follows non-static declaration
../../../gcc-trunk/libquadmath/gdtoa/gdtoa.h:112:15: note: previous
declaration of 'strtod' was here

Cf. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46772


  • Chris Sutcliffe

    Chris Sutcliffe - 2011-05-23

    The problem you report has caused modification in some fashion in
    the official CVS for the given package. The w32api and
    mingw-runtime official CVS reside in the winsup CVS directory tree for Cygwin. If you still find problems then please open a
    new report.

  • Chris Sutcliffe

    Chris Sutcliffe - 2011-05-23
    • assigned_to: nobody --> ir0nh34d
    • status: open --> closed-fixed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks