G
Gully Foyle
I have a simple c library with 4 functions and would like to call one of
them from ruby using ext/dl.
The problem is, one of the internal functions (which I don't need to
access from ruby) uses a data type that causes the following error in ruby:
types.rb:174:in `encode_type': unknown type: foo_struct *foo. (TypeError)
What is the easiest way around this error? Is it possible to 'hide' one
or more c functions in the shared library so that ruby's ext/dl will
just ignore it?
All the wrapper functions simply use int, long and char*--nothing fancy.
I'm using gcc 3.2.x and plain c.
Thanks.
them from ruby using ext/dl.
The problem is, one of the internal functions (which I don't need to
access from ruby) uses a data type that causes the following error in ruby:
types.rb:174:in `encode_type': unknown type: foo_struct *foo. (TypeError)
What is the easiest way around this error? Is it possible to 'hide' one
or more c functions in the shared library so that ruby's ext/dl will
just ignore it?
All the wrapper functions simply use int, long and char*--nothing fancy.
I'm using gcc 3.2.x and plain c.
Thanks.