title: Embedding ruby in c++, problem with ruby libraries
body: <p>I want to have a ruby interpreter in my c++ application. I found an article about it:
  <a href="http://aeditor.rubyforge.org/ruby_cplusplus/index.html" rel="nofollow">http://aeditor.rubyforge.org/ruby_cplusplus/index.html</a>
  But here they use a makefile to compile the program, and I'm not really familiar with this consequently I can't modify it properly.
  I also found a really simple example here:
  <a href="http://my.opera.com/subjam/blog/embedding-ruby-in-c-programs" rel="nofollow">http://my.opera.com/subjam/blog/embedding-ruby-in-c-programs</a>
  But again I encounter a compilation problem.
  They say you need to type 
  g++ -o ruby_test1 ruby_test1.c -I/usr/lib/ruby/1.8/i486-linux/ -lruby1.8
  And this makes sense to me, but I don't have the "i486-linux" folder in my ruby directory. I installed it via apt-get and I chose the '-dev' version.</p>
  
  <p>Where can I find the needed file?</p>
  
  <p>PS
  I'm using Ubuntu. If I like this interpreter I'll also want to make it work on Windows, so 
  any help  will, be appreciated. </p>
  
  <p>I'm not interested in some substitutes for ruby, like tinyrb or whatever. </p>
  
  <p>Bye</p>