multiple definition of `atan2l' on the current Cygwin

Tatsuro MATSUOKA tmacchant2@yahoo.co.jp
Sun Apr 17 05:15:00 GMT 2016


> 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


--
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