mail-archives/mono-list/2003-October/016651.html

76 строки
2.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-list] Importing from DLLs
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:jonpryor%40vt.edu">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="016648.html">
<LINK REL="Next" HREF="016673.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-list] Importing from DLLs
</H1>
<B>Jonathan Pryor
</B>
<A HREF="mailto:jonpryor%40vt.edu"
TITLE="[Mono-list] Importing from DLLs">jonpryor@vt.edu
</A><BR>
<I>Thu, 30 Oct 2003 07:40:52 -0500</I>
<P><UL>
<LI> Previous message: <A HREF="016648.html">[Mono-list] Importing from DLLs
</A></li>
<LI> Next message: <A HREF="016673.html">[Mono-list] About Mono.net???I have some doubts.....
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#16651">[ date ]</a>
<a href="thread.html#16651">[ thread ]</a>
<a href="subject.html#16651">[ subject ]</a>
<a href="author.html#16651">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On Unix (-like) platforms, the convention is to prefix all libraries
with &quot;lib&quot;. Mono is just following that convention.
So one potential fix is to rename the library so it has a &quot;lib&quot; 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
&lt;dllmap/&gt; entry for your library. This should do what you want.
- Jon
On Thu, 2003-10-30 at 06:34, Chris Seaton wrote:
&gt;<i> Hello, again.
</I>&gt;<i>
</I>&gt;<i> Sorry to keep asking more questions...
</I>&gt;<i>
</I>&gt;<i> When I use DllImport with the file name &quot;Tenxt.UI.Text.Native.so&quot;, Mono
</I>&gt;<i> prepends &quot;lib&quot; so that the runtime looks for
</I>&gt;<i> &quot;libTenxt.UI.Text.Native.so&quot;. This isn't how it works on Windows - how
</I>&gt;<i> can I stop it doing this?
</I>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="016648.html">[Mono-list] Importing from DLLs
</A></li>
<LI> Next message: <A HREF="016673.html">[Mono-list] About Mono.net???I have some doubts.....
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#16651">[ date ]</a>
<a href="thread.html#16651">[ thread ]</a>
<a href="subject.html#16651">[ subject ]</a>
<a href="author.html#16651">[ author ]</a>
</LI>
</UL>
</body></html>