From: Christoph Kappel Date: 2009-12-23T03:43:24+09:00 Subject: Re: [ help ] Ruby WM with C ext. ------=_Part_1770_1194093593.1261507232558 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, 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: http://unexist.scrapping.cc/projects/subtle 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 wrote = ----=20 >Hello, thank you for reading my post. My question is, how do I go about=20 >creating a C extension with Ruby? The reason I ask is because I recently= =20 >found a window manager source code,=20 >http://paste.lisp.org/display/47144/raw, but I could not figure out how=20 >to get it set up and installed.=20 >=20 >I read around, and all I could find out was that I needed to create=20 >several files called extconf.rb & .c. Then run the extconf.rb and=20 >build the extension with make. But I am still confused, do I need to=20 >actually make some sort of plugin with the .c in order to have it=20 >run the primary ruby source?=20 >=20 >Any help would be much appreciated, thanks.=20 >--=20 >Posted via http://www.ruby-forum.com/. > ------=_Part_1770_1194093593.1261507232558--