Cython error: C:\Python27\libs/libpython27.a: error adding symbols

前端 未结 1 1599
眼角桃花
眼角桃花 2020-12-18 17:03

I\'m doing my first test with Cython. Basically the hello.pyx example from http://docs.cython.org/src/quickstart/build.html

When I want to compile I get

相关标签:
1条回答
  • 2020-12-18 17:21

    If tools gendef and dlltool are installed, the following should be possible in a temporary directory (assuming msys or cygwin environment):

    gendef c:/Windows/System32/python27.dll
    dlltool -U -d python27.def -l libpython27.dll.a
    cp libpython27.dll.a c:/Python27/libs
    

    Substitute C:/Python27 if necessary.

    gcc will now use the generated file instead of some existing .a or .lib file.

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