<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Writing Ruby C Extensions: Part 2</title>
	<atom:link href="http://tenderlovemaking.com/2010/12/11/writing-ruby-c-extensions-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://tenderlovemaking.com/2010/12/11/writing-ruby-c-extensions-part-2/</link>
	<description>The act of making love, tenderly.</description>
	<lastBuildDate>Mon, 07 May 2012 22:50:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jazmin</title>
		<link>http://tenderlovemaking.com/2010/12/11/writing-ruby-c-extensions-part-2/comment-page-1/#comment-139731</link>
		<dc:creator>Jazmin</dc:creator>
		<pubDate>Fri, 12 Aug 2011 01:27:21 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=475#comment-139731</guid>
		<description>This is great! ;)

I have a C program that uses a .dylib, this library is 32bit, to get it working  I had to compile it with gcc using the -m32 option.

I am now trying to integrate the C code with Ruby but when I try to run it from console I get ***Unable to open library: dlopen(library.dylib, 2): no suitable image found.  Did find: library.dylib: no matching architecture in universal wrapper*** which is the same I get if I compile without the -m32 using gcc.

Do you have any ideas? -- I don&#039;t have the source of the .dylib.. :( 
THANK YOU!!</description>
		<content:encoded><![CDATA[<p>This is great! <img src='http://tenderlovemaking.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I have a C program that uses a .dylib, this library is 32bit, to get it working  I had to compile it with gcc using the -m32 option.</p>
<p>I am now trying to integrate the C code with Ruby but when I try to run it from console I get ***Unable to open library: dlopen(library.dylib, 2): no suitable image found.  Did find: library.dylib: no matching architecture in universal wrapper*** which is the same I get if I compile without the -m32 using gcc.</p>
<p>Do you have any ideas? &#8212; I don&#8217;t have the source of the .dylib.. <img src='http://tenderlovemaking.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
THANK YOU!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brabuhr</title>
		<link>http://tenderlovemaking.com/2010/12/11/writing-ruby-c-extensions-part-2/comment-page-1/#comment-127396</link>
		<dc:creator>brabuhr</dc:creator>
		<pubDate>Tue, 14 Dec 2010 02:45:56 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=475#comment-127396</guid>
		<description>Awesome article, thanks!

(Couple of typos: &quot;string = STree::Sting.new &#039;foo&#039;&quot;, &quot;get the tring length as an integer&quot; :-)</description>
		<content:encoded><![CDATA[<p>Awesome article, thanks!</p>
<p>(Couple of typos: &#8220;string = STree::Sting.new &#8216;foo&#8217;&#8221;, &#8220;get the tring length as an integer&#8221; <img src='http://tenderlovemaking.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Aimonetti</title>
		<link>http://tenderlovemaking.com/2010/12/11/writing-ruby-c-extensions-part-2/comment-page-1/#comment-127367</link>
		<dc:creator>Matt Aimonetti</dc:creator>
		<pubDate>Mon, 13 Dec 2010 07:08:41 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=475#comment-127367</guid>
		<description>Great article Aaron, as usual!

@walmeister, FFI is slower and most FFI ports to JRuby got rewritten in pure java (like nokogiri for instance). Ruby C extension API is well known and supported by CRuby, MacRuby and Rubinius ;)</description>
		<content:encoded><![CDATA[<p>Great article Aaron, as usual!</p>
<p>@walmeister, FFI is slower and most FFI ports to JRuby got rewritten in pure java (like nokogiri for instance). Ruby C extension API is well known and supported by CRuby, MacRuby and Rubinius <img src='http://tenderlovemaking.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: walmeister</title>
		<link>http://tenderlovemaking.com/2010/12/11/writing-ruby-c-extensions-part-2/comment-page-1/#comment-127354</link>
		<dc:creator>walmeister</dc:creator>
		<pubDate>Sun, 12 Dec 2010 22:21:57 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=475#comment-127354</guid>
		<description>Thanks, great article.

I&#039;m just wondering why more people don&#039;t use FFI, which looks to me like it has a number of advantages like, working with JRuby, Ruby 1.8.x and Ruby 1.9.x, etc. and no recompilation step. 

https://github.com/ffi/ffi/wiki/Why-use-FFI</description>
		<content:encoded><![CDATA[<p>Thanks, great article.</p>
<p>I&#8217;m just wondering why more people don&#8217;t use FFI, which looks to me like it has a number of advantages like, working with JRuby, Ruby 1.8.x and Ruby 1.9.x, etc. and no recompilation step. </p>
<p><a href="https://github.com/ffi/ffi/wiki/Why-use-FFI" rel="nofollow">https://github.com/ffi/ffi/wiki/Why-use-FFI</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elad Ossadon</title>
		<link>http://tenderlovemaking.com/2010/12/11/writing-ruby-c-extensions-part-2/comment-page-1/#comment-127316</link>
		<dc:creator>Elad Ossadon</dc:creator>
		<pubDate>Sun, 12 Dec 2010 00:35:51 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=475#comment-127316</guid>
		<description>That must be useful someday, thanks!</description>
		<content:encoded><![CDATA[<p>That must be useful someday, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stJhimy</title>
		<link>http://tenderlovemaking.com/2010/12/11/writing-ruby-c-extensions-part-2/comment-page-1/#comment-127313</link>
		<dc:creator>stJhimy</dc:creator>
		<pubDate>Sat, 11 Dec 2010 23:59:40 +0000</pubDate>
		<guid isPermaLink="false">http://tenderlovemaking.com/?p=475#comment-127313</guid>
		<description>Nice</description>
		<content:encoded><![CDATA[<p>Nice</p>
]]></content:encoded>
	</item>
</channel>
</rss>

