swig no module named _example

前端 未结 3 719
感动是毒
感动是毒 2021-02-15 12:38

I cannot reproduce the basic SWIG example on windows. My error is stated in the SWIG docs and I am sure that I do the 2 fixes they mention. For this error:

>&         


        
3条回答
  •  执笔经年
    2021-02-15 13:21

    I found that (in windows), if you make a dll it has to be called _modulename.pyd This library (_modulename.pyd), the original c++ module myapp.dll and the resulting modulename.py have to be in the path as well as pythonxx.exe

提交回复
热议问题