Converting .so file of linux to a .dll file of win

2019-07-22 14:11发布

问题:

I have some C code (having various header files and a make file) compiled as a .so file in Linux(Ubuntu) and a python program which calls the functions of this shared object using Ctypes. Now, I want to use this program on windows. In windows, Ctypes needs a .dll file instead of .so in linux.

So, is there a way in which I can convert the .so files of linux into .dll files to be used with Ctypes in Windows ?

回答1:

No. You will need to recompile the library for Windows.



标签: c dll ctypes