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: Tue, 19 Apr 2016 08:33:22 +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: Tatsuro MATSUOKA
> To: cygwin
> Cc:
> Date: 2016/4/17, Sun 14:15
> Subject: Re: multiple definition of `atan2l' on the current Cygwin
>
>> I have confirmed the mutiple definition error does not occur on gnuplot
> build
>> with
>> gcc-5.3.0-4 today.
>> Thanks!
>> Tatsuro
>
> The above is for Cygwin X86.
> Cygwin 64 still has problem
> // m.cc
> #include <cstdio>
> #include <cmath>
>
> int main()
> {
> long double x, y;
> scanf("%Lf %Lf", &x, &y);
> printf("%Lf\n", atan2l(x,y));
> return 0;
> }
> //m.cc
> LANG=C g++ m.cc -lm
> /usr/lib/gcc/x86_64-pc-cygwin/5.3.0/libstdc++.dll.a(d005836.o):(.text+0x0):
> multiple definition of `atan2l'
> /usr/lib/../lib/libm.a(t-d000195.o):fake:(.text+0x0): first defined here
> collect2: error: ld returned 1 exit status
> Tatsuro
gcc-5.3.0 for x86 has been updated to gcc-5.3.0-5
http://cygwin.1069669.n5.nabble.com/Updated-gcc-5-3-0-5-x64-td126377.html ;
I confirmed this update resolve this issue.
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