Re: open_dll() with FreeBSD

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

C.K. Lester writes:
> This ain't workin':

Try this:

include dll.e
include machine.e

atom lib
lib = open_dll("libc.so")
if lib = 0 then
    puts(1, "where is libc.so?\n")
end if

integer r
r = define_c_proc(lib, "printf", {C_POINTER})
if r = -1 then
    puts(1, "couldn't find printf!\n")
else
    printf(1, "r is %d\n", r)
end if

c_proc(r, {allocate_string("C.K.")})


Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu