1 msgWide Streams
4 msgMINGW I/O support for file sizes > 2GB (LFS ...
2 msg#define WINVER 0x0400
11 msgWhy does g++ not link with libstdc++?
3 msghow to compile and link a library
1 msgHey Guys
5 msgCompile error using mingw
2 msg'include/c++/ext' missing fromgcc-part-c++-4.3....
1 msgFMTID_SummaryInformation andFMTID_UserDefinedPr...
2 msghow to realize mouse programming
3 msglooking for tiny light cross platform filesyste...
2 msgMinGW GCC Development Plan
3 msghow to use the read/write
74 msgGCC 4.3.0 20080502 (alpha) Released - Please he...
10 msgMinGW gcc 3.x, 4.x and exceptions
4 msgdllwrap 2.17.50 20060824

strtod is not C99-compatible
\ Ramiro Polla (1 May 2008)
. \ Brian Dessent (1 May 2008)
. . \ Ramiro Polla (1 May 2008)
. . . \ Ramiro Polla (1 May 2008)
. . . . \ Keith Marshall (2 May 2008)
. . . . . \ Ramiro Polla (2 May 2008)
. . . . . . \ Keith Marshall (2 May 2008)
. . . . . . . \ Chris Sutcliffe (3 May 2008)
. . . . . . . . \ Danny Smith (4 May 2008)
. . . . . . . . . \ Ramiro Polla (6 May 2008)
. . \ Charles Wilson (1 May 2008)
. \ Brian Dessent (1 May 2008)

4 msgTest program crashes with g++ 4.2.1-dw2 usingli...
25 msgimlib2
4 msgDisassembly of stack frame
Subject:Re: strtod is not C99-compatible
Group:Mingw-users
From:Ramiro Polla
Date:6 May 2008


 
Hello,

Danny Smith wrote:
>> Committed to CVS, will be included in the next release.
>
> +_CRTIMP double __cdecl __MINGW_NOTHROW _strtod (const char*, char**);
>
> Does MSVCRT.dll export this name?

No, it doesn't. I reopened the issue on the patch tracker and sent a new
patch to reflect this.

> MSDN documents strtod and wcstod as ANSI (presumably
> meaning ISO C90) compliant.

With the patch I sent, you can see the difference:

ramiro@FOUND /usrc/smalls
$ cat strtod.c
#include <stdlib.h>
#include <stdio.h>

int main()
{
char *string = "0x00000001";
char *end;
double d;

d = strtod(string, &end);
printf("end %s\n", end);
printf("%f\n", d);

return 0;
}

ramiro@FOUND /usrc/smalls
$ gcc -o strtod.exe strtod.c

ramiro@FOUND /usrc/smalls
$ ./strtod.exe
end
1.000000

ramiro@FOUND /usrc/smalls
$ gcc -D__NO_ISOCEXT -o strtod.exe strtod.c

ramiro@FOUND /usrc/smalls
$ ./strtod.exe
end x00000001
0.000000

Sorry for yet another wrong patch (I should be more careful).

Ramiro Polla

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
MinGW-users mailing list
MinGW-users

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users


© 2004-2008 readlist.com