[Mono-list] using dll in linux

Sergio A. Hernandez info.geex at gmail.com
Mon Jun 8 20:42:10 EDT 2009


Probably I'll be kind of redundant but...
First of all the library you want to use is a .Net Assembly?
If it is you can try to added to the GAC by using the gacutil command
# gacutil -i xxx.dll

or to un-install it
# gacutil -u xxx.dll

or you can play with the configuration files and the dllmap node like
<configuration>
 <dllmap dll="libxxx.dll" target="libxxx.so.0" />
</configuration>


If is not a .Net assembly you can try use wine & PInvoke, but honestly dont
think this works. I heard about people trying but they never came back and
say that they could.


On Wed, Jun 3, 2009 at 8:21 AM, Chaiser <harel.gr at gmail.com> wrote:

>
> Hey all,
>
> I'm new to mono so I hope that you'll be able to sort my problem.
>
> I wrote a C# program on .net in windows. in my program I'm using a xxx.dll
> that I created using visual C.
>
> I build the project , got a proj.exe file that is using my xxx.dll.
>
> when I copy my proj.exe+xxx.dll to linux env, and running it with " mono
> proj.exe " it runs fine until it reaches the part the programs call a
> function from the xxx.dll ( reasonable cause the xxx.dll written and
> compiled for win 32 ).
>
> my question is  - how can I use my xxx.dll ( compile it with gcc ?! ) with
> mono in linux ?
>
> thanks in advance,
> Joe
> --
> View this message in context:
> http://www.nabble.com/using-dll-in-linux-tp23852386p23852386.html
> Sent from the Mono - General mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090608/e08f323f/attachment.html 


More information about the Mono-list mailing list