This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: multiple definition of `atan2l' on the current Cygwin
- From: Takashi Yano <takashi dot yano at nifty dot ne dot jp>
- To: cygwin at cygwin dot com
- Date: Thu, 14 Apr 2016 19:00:25 +0900
- Subject: Re: multiple definition of `atan2l' on the current Cygwin
- Authentication-results: sourceware.org; auth=none
- Dkim-filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com u3EA0J61007230
- References: <888012 dot 8502 dot qm at web101106 dot mail dot kks dot yahoo dot co dot jp> <20160412133924 dot GO9870 at calimero dot vinschen dot de> <58477 dot 93886 dot qm at web101112 dot mail dot kks dot yahoo dot co dot jp> <neltp4$c89$1 at ger dot gmane dot org> <20160414075205 dot GD1264 at calimero dot vinschen dot de>
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
--
Takashi Yano <takashi.yano@nifty.ne.jp>
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple