Re: Euphoria 2.3 and Linking to GTK

new topic     » goto parent     » topic index » view thread      » older message » newer message

Good morning/afternoon/evening, y'all!

I've tested the following snippet in Linux-Mandrake 8.0, and found that in the 
case of both open_dll() and my_open_dll() returned 0.  However, since I am 
still quite unfamiliar with Linux, this may not be a problem with Euphoria, but 
rather a problem with my configuration.

Could other Linux users test this as well to confirm or dispute my results?

Thanks, 

Travis Beaty
Claude, Texas.


> You can help test it for me by using
> my_open_dll below to open your GTK library:
> 
> ---------------------------------
> 
> include dll.e
> include machine.e
> 
> constant RTLD_LAZY   = #0001,
>            RTLD_GLOBAL = #0100
> 
> -- The current Euphoria open_dll fails (returns 0)
> puts(1, "using current open_dll ...\n")
> ? open_dll("libgtk.so") 
> 
> -- so try rolling your own open_dll ...
> 
> integer my_open_dll
> atom dl, name
> 
> dl = open_dll("libdl.so")
> my_open_dll = define_c_func(dl, "dlopen", {C_POINTER, C_UINT}, C_POINTER)
> 
> name = allocate_string("libgtk.so")
> 
> puts(1, "using my_open_dll ...\n")
> ? c_func(my_open_dll, {name, or_bits(RTLD_LAZY, RTLD_GLOBAL)})
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu