Tech Support > Microsoft Windows > Development Resources > How to Port C++ dll in Linux to Windows?
How to Port C++ dll in Linux to Windows?
Posted by ks.dipu@gmail.com on May 8th, 2007


I have a dll written in C++ running in a Linux machine. Now i want to
move that dll to
a Windows system and use it with a Windows application.
How can i do that?

Can you please tell what all are the performance issues i face?


What all are the dependencies?


Thanks in advance

Posted by Ulrich Eckhardt on May 9th, 2007


ks.dipu@gmail.com wrote:
I doubt that, POSIX systems don't have DLLs.

You can't, DLLs or SOs are not portable between different OSs or even CPUs,
unless special adaptation/emulation layers are provided.

What you can do is take the C++ sourcecode and compile it into a win32 DLL.
Typically, all compilers come with examples that show how to compile code
into a DLL. As far as OS specific functions are concerned, you need to make
a case-by-case decision how or if to replace it.

huh?

what?

I'm really not sure what you mean with those last two questions, generally
they can't be answered with much more context so I'm not sure if you really
mean what you say here...

--
Sator Laser GmbH
Geschäftsführer: Ronald Boers, Amtsgericht Hamburg HR B62 932



Similar Posts