LNK1181: cannot open input file 'm.lib'

后端 未结 1 1331
不思量自难忘°
不思量自难忘° 2021-01-02 08:45

When trying to install a certain Python geophysical toolkit, I get this error:

LINK : fatal error LNK1181: cannot open input file \'m.lib\'

相关标签:
1条回答
  • 2021-01-02 09:06

    On Windows, the standard math functions are handled by MSVCR:

    >>> from ctypes.util import find_library
    >>> find_library('m')
    'msvcr90.dll'
    

    I don't have MSVC installed to test, but you just need to link against the runtime. Try removing 'm'.

    0 讨论(0)
提交回复
热议问题