numpy.arctan2 function can not be compiled under Windows??

0 views
Skip to first unread message

sck...@gmail.com

unread,
Oct 3, 2016, 8:58:28 AM10/3/16
to Numba Public Discussion - Public
Hi, All:
    I am not sure if I am wrong, or, I couldn't use numba's AOT to compile my code under Windows (but Mac OSX can)

    I got an error:
        error LNK2019: unresolved external symbol atan2_fixed referenced in function ._pycc_method_cdist

    So I checked the file at Miniconda2\pkgs\numba-0.28.1-np111py27_0\Lib\site-packages\numba\targets\mathimpl.py:
  314          types.float32: "atan2f",
  315          # Workaround atan2() issues under Windows
  316:         types.float64: "atan2_fixed" if sys.platform == "win32" else "atan2"
  317          }[ty]
  318      fnty = Type.function(lty, (lty, lty))
 
     But if I changed "atan2_fixed" to "atan2" (line 316), then it can be compiled. (is that right?!)
     I want to know if the workaround has been deprecated so I can use my AOT shared library under windows
     Thanks,

    Ku
Reply all
Reply to author
Forward
0 new messages