multiple definition of `atan2l' on the current Cygwin
Tatsuro MATSUOKA
tmacchant2@yahoo.co.jp
Mon Apr 18 23:33:00 GMT 2016
> 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
More information about the Cygwin
mailing list