multiple definition of `atan2l' on the current Cygwin

Corinna Vinschen corinna-cygwin@cygwin.com
Thu Apr 14 13:52:00 GMT 2016


On Apr 14 19:00, Takashi Yano wrote:
> Hi Corinna,
> 
> On Thu, 14 Apr 2016 09:52:05 +0200
> Corinna Vinschen wrote:
> > If it's that simple, why does my STC (or a simple variation thereof) not
> > complain?
> 
> It is because optimizer removes the function call.
> 
> Try:
> 
> $ cat > m.cc <<EOF
> #include <cstdio>
> #include <cmath>
> 
> int main()
> {
>   long double x, y;
>   scanf("%Lf %Lf", &x, &y);
>   printf("%Lf\n", atan2l(x,y));
>   return 0;
> }
> EOF
> $ g++ m.cc -lm

Thanks!  So that's why my testcase didn't work :}

This is actually a problem in libstdc++-v3.  On platforms missing
certain long double functions libstdc++-v3 is built with stub functions
using the same name.

Jon, any chance to rebuild the gcc packages ASAP?


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20160414/04c4cd83/attachment.sig>


More information about the Cygwin mailing list