[Mono-list] Importing from DLLs
Thu, 30 Oct 2003 07:40:52 -0500
On Unix (-like) platforms, the convention is to prefix all libraries
with "lib". Mono is just following that convention.
So one potential fix is to rename the library so it has a "lib" prefix.
(It should be noted that Java JNI requires the lib prefix.)
Another potential fix is to edit $prefix/etc/mono/config, and add a
<dllmap/> entry for your library. This should do what you want.
On Thu, 2003-10-30 at 06:34, Chris Seaton wrote:
> Hello, again.
> Sorry to keep asking more questions...
> When I use DllImport with the file name "Tenxt.UI.Text.Native.so", Mono
> prepends "lib" so that the runtime looks for
> "libTenxt.UI.Text.Native.so". This isn't how it works on Windows - how
> can I stop it doing this?