[Mono-devel-list] How to use shared library with C# on linux

Hayes, Dennis Dennis.Hayes at raytek.com
Wed Nov 19 13:14:54 EST 2003


With Microsoft C++ you can create a .DEF file with the name of the functions
in it and include it in the build. Names in the file will not be mangled or
decorated.
Not sure of this fixes the same problem or not.
Dennis

-----Original Message-----
From: Bernie Solomon [mailto:bernard at ugsolutions.com] 
Sent: Wednesday, November 19, 2003 9:42 AM
To: Daniel Schalk; mono-devel-list at lists.ximian.com
Subject: Re: [Mono-devel-list] How to use shared library with C# on linux

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).




More information about the Mono-devel-list mailing list