delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/05/16:43:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 5 Jul 2005 16:42:40 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: problem with strtoimax?
Message-ID: <20050705204240.GC6476@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <070520052026 DOT 16257 DOT 42CAECF200019E8600003F8122007348300A050E040D0C079D0A AT comcast DOT net>
Mime-Version: 1.0
In-Reply-To: <070520052026.16257.42CAECF200019E8600003F8122007348300A050E040D0C079D0A@comcast.net>
User-Agent: Mutt/1.5.8i

On Tue, Jul 05, 2005 at 08:26:26PM +0000, 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 <stdio.h>
>#include <inttypes.h>
>
>int main(int argc, char**argv)
>{
>   printf("%lld\n", strtoimax("1", NULL, 0));
>   return 0;
>}
>$ 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.

>$ gcc -o foo -mno-cygwin foo.c 
>$ ./foo
>1
>
>Also, there is a bug with strtoll (which cygwin.din claims should be the base
>of strtoimax):
>$ cat > foo.c
>#include <stdio.h>
>#include <inttypes.h>
>
>int main(int argc, char**argv)
>{
>   printf("%llx\n", strtoll("1", NULL, 10));
>   return 0;
>}
>$ gcc -o foo foo.c
>$ ./foo
>a00000001

This, I can confirm.  PTC.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019