[Mono-devel-list] How to use shared library with C# on linux
Peter Williams
peter at newton.cx
Wed Nov 19 13:40:55 EST 2003
On Wed, 2003-11-19 at 12:42, Bernie Solomon wrote:
> To DllImport a function by its plain name means that the function must not
> have a mangled named and hence if in C++ must be extern "C" (alternatively
> you could set EntryPoint to the mangled name if you really only want to
> run with one platform/compiler combination but this is very unportable).
I think the problem in this case is that the runtime doesn't have a
mapping set up to find the library; you're going to need to edit
/etc/mono/config and add a <dllmap> entry. (As far as I know, there's no
way to extend this scheme, which seems like it could be a big problem
for third-party apps to me).
Peter
--
Peter Williams peter at newton.cx
"[Ninjas] are cool; and by cool, I mean totally sweet."
-- REAL Ultimate Power
More information about the Mono-devel-list
mailing list