[Mono-osx] Mono - OSX : dlopen()
ekinsol
contact at ekinsol.be
Fri Jul 2 04:19:41 EDT 2010
Hi,
I am currently looking to make a c# library for PC/SC (smart-cards) run on
mono.
I have been successful making connections with the reader (thanks to dll
mapping).
Now there is one more obstacle to be overcome. The library uses P/Invoke
functions to call dlopen() and dlsym(), and get some return uIntPtr's from
the dll.
In newer versions of mac os x, it seems that libdl.Dylib does not contain
these functions anymore. Seen in this error:
Unhandled Exception: System.Exception: PInvoke call dlopen() failed
I map the dll this way in a .dll.config, and there are no troubles using
this for other dll's :
<dllmap dll="libdl.so.2" os="osx" target="libdl.Dylib" />
While researching I have found that these functions are still available on
mac os x 10.4+ , at /usr/include/dlfcn.h , but since this is not a library ,
I would not know how I can use this in a mono project.
Any pointers on this issue would be very welcome.
With friendly regards,
ekinsol
--
View this message in context: http://mono.1490590.n4.nabble.com/Mono-OSX-dlopen-tp2276131p2276131.html
Sent from the Mono - OSX mailing list archive at Nabble.com.
More information about the Mono-osx
mailing list