[Mono-list] Re: interop question.
Thu, 30 Aug 2001 10:42:12 +0200
Lloyd Dupont wrote:
> Miguel suggest you (though i cc the question to the list)
> i had wrote some assembly using interop.
> in mycode i declare external link like this:
> public extern unsafe static void myFynction();
> writing "mydll" without the ".dll" extension.
> how does it work on unix ?
> do i have to write a (standart unix) library with ".so" extension and it would search for it ?
> or will it search for both ".dll" & ".so" ? or something else ? (such as i need to specify complete library name ?)
If you write the name without and extension, mono will use the standard shared library extension for the platform it
mydll -> mydll.dll on windows
mydll -> mydll.so for (dl bases unix systems)
mydll -> mydll.sl fo (dld bases systems)