[Mono-devel-list] Creating a DLL for non-Windows platforms
jacek.blaszczynski at acn.waw.pl
Tue Aug 3 03:51:30 EDT 2004
It is straightforward - assure that your declarations of DllImport attribute
work under Win (they do) and better have no ".dll" extension and use the
very same dll with P/Invoke calls under linux. Should work - my dll's work
For details check Mono Handbook - Advnanced Topics P/Invoke - there is
additional functionality which you do not need for this library -
retargeting of library calls with dll .config files.
From: mono-devel-list-admin at lists.ximian.com
[mailto:mono-devel-list-admin at lists.ximian.com] On Behalf Of Michi Henning
Sent: Tuesday, August 03, 2004 7:51 AM
To: mono-devel-list at lists.ximian.com
Subject: [Mono-devel-list] Creating a DLL for non-Windows platforms
I have some C# code that uses platform invoke to call functions in
libbz2.dll to perform compression. Works fine under Windows, with both Mono
and Visual C#.
Given a Linux libbz2.so (or libbz2.a), or the bz2 source, how can I build a
dll that Mono can call under Windows?
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
More information about the Mono-devel-list