Hello, thank you for reading my post. My question is, how do I go about
creating a C extension with Ruby? The reason I ask is because I recently
found a window manager source code, http://paste.lisp.org/display/47144/raw, but I could not figure out how
to get it set up and installed.
I read around, and all I could find out was that I needed to create
several files called extconf.rb & <file>.c. Then run the extconf.rb and
build the extension with make. But I am still confused, do I need to
actually make some sort of plugin with the <file>.c in order to have it
run the primary ruby source?
sorry to reply that late and out of list, but I seem to miss your mail. The funny thing
is that this extension basically wraps just xlib which is easiert with ruby-ffi.
Since you are interested in a wm with ruby, I would like to suggest you my projekt:
A wm written in C but with a strong integration of ruby.
Wbr, Christoph
···
---- On Tue, 08 Dec 2009 12:45:34 +0100 Mao Mr <maoanther@gmail.com> wrote ----
Hello, thank you for reading my post. My question is, how do I go about
creating a C extension with Ruby? The reason I ask is because I recently
found a window manager source code, http://paste.lisp.org/display/47144/raw, but I could not figure out how
to get it set up and installed.
I read around, and all I could find out was that I needed to create
several files called extconf.rb & <file>.c. Then run the extconf.rb and
build the extension with make. But I am still confused, do I need to
actually make some sort of plugin with the <file>.c in order to have it
run the primary ruby source?