Can't run

24 views
Skip to first unread message

Catherine Grizzell

unread,
Dec 26, 2014, 9:10:01 PM12/26/14
to ruby...@googlegroups.com

I'm trying to call simple functions from C in ruby using ffi but I keep getting the same error.

The error I keep getting no matter how many different examples I run through..
2014-12-25-175558_813x216_scrot.png

Catherine Grizzell

unread,
Dec 26, 2014, 9:21:18 PM12/26/14
to ruby...@googlegroups.com


On Friday, December 26, 2014 6:10:01 PM UTC-8, Catherine Grizzell wrote:

I'm trying to call simple functions from C in ruby using ffi but I keep getting the same error.

The error I keep getting no matter how many different examples I run through..

   Also note that libfactorial.so is in the working directory..

Matijs van Zuijlen

unread,
Dec 28, 2014, 2:24:01 AM12/28/14
to ruby...@googlegroups.com
Hi Catherine,
ffi looks for libraries in the system load path. Try passing the full path of
libfactorial.so. to ffi_lib.

--
Matijs

signature.asc

Catherine Grizzell

unread,
Dec 28, 2014, 4:29:12 AM12/28/14
to ruby...@googlegroups.com
I had initially tried that and got the same error, but wouldn't not matter since I'm running ruby in the same directory? I'll try again with the path though...
Reply all
Reply to author
Forward
0 new messages