open_dll problem

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

Hi all
Back here after a long, long time, and immediately in trouble. Here's the code to demonstrate the issue:

include std/dll.e 
include std/text.e 
include std/filesys.e 
 
sequence lib_file = "/usr/lib64/libgtk-3.so.0" 
atom lib_handle = open_dll( lib_file ) 
 
puts( 1, "dll handle = " & sprint( lib_handle ) & "\n" ) 
 
puts(1, "File length of /usr/lib64/libgtk-3.so.0 = " & sprint( file_length( lib_file ) ) ) 

Here's the output:

dll handle = 0
File length of /usr/lib64/libgtk-3.so.0 = 7187144

So the library won't open, but it is found by the file_length() function. What am I missing? Why can't I open gtk?

PeterR

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

Search



Quick Links

User menu

Not signed in.

Misc Menu