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

16k views Asked by At

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

There are 1 answers

6
uraimo On BEST ANSWER

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