[IronPython] IronPython ctypes on Linux

Dino Viehland dinov at microsoft.com
Tue Jul 28 00:13:31 CEST 2009


If we just aliased LoadLibrary to dlopen will that work?

My hope was that we could basically rely upon Mono's P/Invoke mapping
to handle running ctypes on Linux.  But maybe LoadLibrary/dlopen have
slightly different sigs and we need to handle that one specially.

> -----Original Message-----
> From: users-bounces at lists.ironpython.com [mailto:users-
> bounces at lists.ironpython.com] On Behalf Of Seo Sanghyeon
> Sent: Saturday, July 25, 2009 5:07 AM
> To: Discussion of IronPython
> Subject: [IronPython] IronPython ctypes on Linux
>
> Hopefully I'm not too late on reporthing this...
>
> If you look at ctypes/__init__.py in Python 2.6, it imports different
> functions from _ctypes depending on os.name. So on Linux, it expects
> dlopen to be available, instead of LoadLibrary.
>
> --
> Seo Sanghyeon
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com




More information about the Ironpython-users mailing list