delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <780856ABB39B4C7F98A74B7131E4932C@desktop2> |
From: | "Sisyphus" <sisyphus1 AT optusnet DOT com DOT au> |
To: | <cygwin AT cygwin DOT com> |
References: | <B762313E2F744EE8A72B2113F081D0D3 AT desktop2> <46A8939C DOT 340DF017 AT dessent DOT net> <11CF7C4D0D334F4EBC16B015D7CB1993 AT desktop2> <46A8ABD9 DOT 4AABEABF AT dessent DOT 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 |
X-Mailer: | Microsoft Windows Mail 6.0.6000.16480 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
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 |
----- Original Message ----- From: "Brian Dessent" <brian AT dessent DOT 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 AT desktop2 ~/C $ cat script.c #include <stdio.h> int main(void) { long double x = sqrtl(7); printf("%.19Lf\n", x); return 0; } Rob AT desktop2 ~/C $ gcc script.c Rob AT desktop2 ~/C $ ./a.exe 2.6457513110645905904 Rob AT 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |