X-Spam-Check-By: sourceware.org
Message-ID: <780856ABB39B4C7F98A74B7131E4932C@desktop2>
From: "Sisyphus" <sisyphus1@optusnet.com.au>
To: <cygwin@cygwin.com>
References: <B762313E2F744EE8A72B2113F081D0D3@desktop2> <46A8939C.340DF017@dessent.net> <11CF7C4D0D334F4EBC16B015D7CB1993@desktop2> <46A8ABD9.4AABEABF@dessent.net>
In-Reply-To: <46A8ABD9.4AABEABF@dessent.net>
Subject: Re: Cygwin Perl and -Duselongdouble
Date: Fri, 27 Jul 2007 20:20:03 +1000
MIME-Version: 1.0
Content-Type: text/plain; 	format=flowed; 	charset="iso-8859-1"; 	reply-type=original
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Windows Mail 6.0.6000.16480
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com


----- Original Message ----- 
From: "Brian Dessent" <brian@dessent.net>
.
.
>> If I can successfully run 'gcc script.c' (where 'script.c' contains a 
>> call
>> to 'sqrtl') then I'm inclined to say that sqrtl is "available in the C
>> compiler" (or something like that).
>
> But you can't.  That command should fail on Cygwin.

It certainly works for me for 'sqrtl' (but fails for 'frexpl' with 
"undefined reference to `_frexpl'"):

--------------------------------------
Rob@desktop2 ~/C
$ cat script.c
#include <stdio.h>

int main(void) {
    long double x = sqrtl(7);
    printf("%.19Lf\n", x);
    return 0;
}

Rob@desktop2 ~/C
$ gcc script.c

Rob@desktop2 ~/C
$ ./a.exe
2.6457513110645905904

Rob@desktop2 ~/C
--------------------------------------

[Snip - a most helpful explanation of where libc and newlib fit into the 
picture, and of other aspects that I was finding confusing. Thanks for that 
Brian ... much appreciated.]

Cheers,
Rob 


--
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/

