[Mono-list] P/Invoke to dlopen

Dallman, John john.dallman at siemens.com
Wed Aug 5 05:43:55 EDT 2009


Dino Viehland wrote: 

> So for dlopen I need to know what the P/Invoke signature should look like.  
> Ideally that signature would work on all *nix systems.

Robert has given you the runes for Linux, but dlopen and dlsym come from 
different places on other *nix systems:

Mac OS X: libSystem.B.Dylib
Solaris:  ld.so

And so on on other systems. Dlopen also tends to have quite complicated 
behaviour on all of them, with 32-vs-64 issues, various control flags, 
etc. We try hard to avoid using it; I appreciate you don't have a choice, 
but getting it all straight is unlikely to be quick or easy. 

--
John Dallman


More information about the Mono-list mailing list