This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
----- Original Message ----- From: "Brian Dessent" <brian@dessent.net> To: <cygwin@cygwin.com> Sent: Thursday, July 26, 2007 10:29 PM Subject: Re: Cygwin Perl and -Duselongdouble
Oh ... it's probably just ignorance on my part.If your position is that availability as a built-in should suffice, you may have a long row to hoe.
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).
gcc itself supports only built-in functions. There are plenty of posts in the archives concerning why cygwin doesn't use glibc rather than newlib.
I gather from your response (and Corinna's) that there are also a couple of things called 'newlib' and 'libc' that enter into the equation.
mingw relies on Microsoft library support, where again there is no separate long double. You are free to add prototypes to your cygwin <math.h>, but you must take the further step of actually supplying a function. It should not be difficult to make one for cygwin which satisfies your purposes, whatever they are. For example, you could build a function which uses the built-in, with its limitations.
I find it all quite confusing. My MinGW version of math.h specifically prototypes the "long double" version of a number of functions (ceill, floorl, sqrtl, modfl, ...), yet I can't find any mention of those functions in any of the gcc headers on Linux or Cygwin.
/definitely Off Topic
If I call sqrtl on linux I have to link to -lm, on Cygwin I don't.
-- 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/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |