This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: multiple definition of `atan2l' on the current Cygwin
- From: Tatsuro MATSUOKA <tmacchant2 at yahoo dot co dot jp>
- To: cygwin at cygwin dot com
- Date: Sun, 17 Apr 2016 13:29:38 +0900 (JST)
- Subject: Re: multiple definition of `atan2l' on the current Cygwin
- Authentication-results: sourceware.org; auth=none
- 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> <20160414190025 dot fec117c21bb05fd0ac28592e at nifty dot ne dot jp> <20160414135235 dot GE1264 at calimero dot vinschen dot de>
- Reply-to: Tatsuro MATSUOKA <matsuoka at nuce dot nagoya-u dot ac dot jp>
> From: Corinna Vinschen >
> To: cygwin> Cc: JonY
> Date: 2016/4/14, Thu 22:52
> Subject: Re: multiple definition of `atan2l' on the current Cygwin
>
> 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
I have confirmed the mutiple definition error does not occur on gnuplot build with
gcc-5.3.0-4 today.
Thanks!
Tatsuro
--
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