X-Spam-Check-By: sourceware.org Message-ID: <780856ABB39B4C7F98A74B7131E4932C@desktop2> From: "Sisyphus" To: References: <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 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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" . . >> 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 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/