[Mono-devel-list] Creating a DLL for non-Windows platforms
Jacek Blaszczynski
jacek.blaszczynski at acn.waw.pl
Tue Aug 3 03:51:30 EDT 2004
Hello!
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
this way.
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.
Cheers
Jacek
-----Original Message-----
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
Hi,
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?
Thanks muchly,
Michi.
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list