----- Original Message ----- From: "Brian Dessent" <[EMAIL PROTECTED]>
.
.
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'"):

--------------------------------------
[EMAIL PROTECTED] ~/C
$ cat script.c
#include <stdio.h>

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

[EMAIL PROTECTED] ~/C
$ gcc script.c

[EMAIL PROTECTED] ~/C
$ ./a.exe
2.6457513110645905904

[EMAIL PROTECTED] ~/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/

Reply via email to