Re: One-liner breaks "strtold" in XCode 2.4
Re: One-liner breaks "strtold" in XCode 2.4
- Subject: Re: One-liner breaks "strtold" in XCode 2.4
- From: Shawn Erickson <email@hidden>
- Date: Tue, 28 Nov 2006 18:33:28 -0800
On Nov 28, 2006, at 6:21 PM, Jordan K. Hubbard wrote:
Works for me:
jkh@fifi-> uname -a
Darwin ap0101m-dhcp11.apple.com 8.8.0 Darwin Kernel Version 8.8.0:
Fri Sep 8 17:18:57 PDT 2006; root:xnu-792.12.6.obj~1/RELEASE_PPC
Power Macintosh powerpc
jkh@fifi-> gcc -Wall strtoldtest.c -o strtoldtest
strtoldtest.c: In function 'main':
strtoldtest.c:13: warning: control reaches end of non-void function
jkh@fifi-> ./strtoldtest
1.900000000000000000000000000000e+27
MacPro:~ shawnce$ uname -a
Darwin MacPro.local 8.8.1 Darwin Kernel Version 8.8.1: Mon Sep 25
19:42:00 PDT 2006; root:xnu-792.13.8.obj~1/RELEASE_I386 i386 i386
MacPro:~ shawnce$ gcc -o bug2 bug2.c
MacPro:~ shawnce$ file bug2
bug2: Mach-O executable i386
MacPro:~ shawnce$ ./bug2
nan
MacPro:~ shawnce$ gcc -arch ppc -o bug2 bug2.c
MacPro:~ shawnce$ file bug2
bug2: Mach-O executable ppc
MacPro:~ shawnce$ ./bug2
1.900000000000000000000000000000e+27
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden