#include <dlfcn.h>

void *dlopen(const char *filename, int flag);

char *dlerror(void);

void *dlsym(void *handle, const char *symbol);

int dlclose(void *handle);

Not quite the same as LoadLibrary.

On Mon, Jul 27, 2009 at 3:13 PM, Dino Viehland<[email protected]> wrote:
> 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: [email protected] [mailto:users-
>> [email protected]] 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
>> [email protected]
>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>



-- 
slide-o-blog
http://slide-o-blog.blogspot.com/
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to