Re: open_dll() with FreeBSD
- Posted by Robert Craig <rds at RapidEuphoria.com> Jan 13, 2003
- 462 views
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