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,
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
Log in to post a comment.