[Mono-list] Compiling to DLL
m.ridoni at gmail.com
Fri Feb 7 14:43:23 UTC 2014
2014-02-07 15:22 GMT+01:00 Edward Ned Harvey (mono) <
edward.harvey.mono at clevertrove.com>:
> I may be wrong, but I think:
> If you write a DLL in C, then it's not usable in C# except by dropping
> down to Win32, in which case, you might as well just give up and use C.
> Likewise, if you build a DLL in C#, you cannot use it in C, but you could
> use C++ .NET.
Well, you are partially wrong :-) On Linux/Unix, if you write C code, you
can build a shared object (with the extension .so) that is essentially a
DLL, that can be called from C# (Mono) with the same mechanism you would
use under Win32. If you write your code carefully, you can use the same
sources and just have different build environments for Windows and Linux.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-list