[Mono-devel-list] Creating a DLL for non-Windows platforms

Michi Henning michi at zeroc.com
Wed Aug 4 06:21:33 EDT 2004


----- Original Message ----- 
From: "Jacek Blaszczynski" <jacek.blaszczynski at acn.waw.pl>
To: <michi at zeroc.com>; <mono-devel-list at lists.ximian.com>
Sent: Tuesday, August 03, 2004 5:51 PM
Subject: RE: [Mono-devel-list] Creating a DLL for non-Windows platforms


> 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
>
> _______________________________________________
> 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