problem with strtoimax?

2005-07-05 Thread Eric Blake
The release notes for 1.5.18 state that strtoimax was added. But compare the output of the following: $ uname -a CYGWIN_NT-5.0 eblake 1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown unknown Cygwin $ cat > foo.c #include #include int main(int argc, char**argv) { printf("%lld\n", strtoimax("

Re: problem with strtoimax?

2005-07-05 Thread Christopher Faylor
On Tue, Jul 05, 2005 at 08:26:26PM +, Eric Blake wrote: >The release notes for 1.5.18 state that strtoimax was added. But compare >the output of the following: > >$ uname -a >CYGWIN_NT-5.0 eblake 1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown unknown >Cygwin >$ cat > foo.c >#include >#inclu

Re: problem with strtoimax?

2005-07-05 Thread Eric Blake
> On Tue, Jul 05, 2005 at 08:26:26PM +, Eric Blake wrote: > >$ gcc -o foo foo.c > >/cygdrive/c/DOCUME~1/eblake/LOCALS~1/Temp/ccQLtRpQ.o:foo.c:(.text+0x42): > undefined reference to `_strtoimax' > >collect2: ld returned 1 exit status > > WJFFM. It seems like you have an outdated libcygwin.a.

Re: problem with strtoimax?

2005-07-05 Thread Eric Blake
> >$ cat > foo.c > >#include > >#include > > > >int main(int argc, char**argv) > >{ > > printf("%llx\n", strtoll("1", NULL, 10)); > > return 0; > >} > >$ gcc -o foo foo.c > >$ ./foo > >a0001 > > This, I can confirm. PTC. > No patch necessary (PEBCAK). strtoimax is in inttypes.h, but

RE: problem with strtoimax?

2005-07-06 Thread Dave Korn
Original Message >From: Eric Blake >Sent: 05 July 2005 22:51 >>> $ cat > foo.c >>> #include >>> #include >>> >>> int main(int argc, char**argv) >>> { >>> printf("%llx\n", strtoll("1", NULL, 10)); >>> return 0; >>> } >>> $ gcc -o foo foo.c >>> $ ./foo >>> a0001 >> >> This, I can