Forum: Ruby-core Re: Patch for : ext\dl\handle.c

Posted by Christian Bodt (Guest)
on 2010-03-05 17:24
(Received via mailing list)
> At Fri, 5 Mar 2010 22:24:01 +0900,
> Christian Bodt wrote in [ruby-core:28504]:
> > Initially, I wanted to add the support for loading of symbols with the
> > format "_function <at> NNN" (from MSCV dlls) but the "dlhandle_sym"
function was
> > a little to complex to implement it without some refactoring. I will
need
> > some more patches to achieve this :)
>
> It's already supported.
>

Hi Nobu,

Are you sure the underscore at the beginning of is also supported? I 
didn't
find it in the source code.
Last time I tried when implementing a 1.9 binding for bgd.dll compiled 
with
MSVC I had to write  :
_____
module GD2
    extend DL::Importer

    dlload  "bgd.dll"
    extern "GDImagePtr _gdImageCreateFromJpeg (void*)"      # note the
underscore at the beginning
    (...)
end
_____

Thanks,

Christiaan
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.