[Mono-osx] P/invoke 32-bit C library

Andrew Ayre andy at britishideas.com
Wed Sep 14 12:22:30 EDT 2011

On 9/14/2011 3:41 PM, Uli Hertlein wrote:
> Try dropping the leading '_' in the DllImport.
> I'm doing exactly the same and don't specify the leading underscore in
> the DllImport statement and it's fine.  (I guess some layer along the
> way adds it automatically?)
> And yes, my symbols also have it in the dylib.

Hi Uli,

Yes, that did the trick! However I went back and tried it again in
Windows and it's wanting the underscore, which is a bit puzzling. For
now I will have two separate C# wrapper assemblies but I will have to
revisit this to understand it better later and hopefully get back to a
single wrapper assembly.

Also thanks for pointing out about the shell and wildcards. My
background is mostly in Windows - doesn't show does it? ;)


PGP Key ID: 0xDC1B5864

More information about the Mono-osx mailing list