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

2019-07-22 13:29发布

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 ?

标签: c dll ctypes
1条回答
Evening l夕情丶
2楼-- · 2019-07-22 14:04

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

查看更多
登录 后发表回答