From: ts Date: 2003-02-05T21:44:07+09:00 Subject: Re: Embedding Ruby in C code >>>>> "S" == Szymon Drejewicz writes: S> #include "ruby.h" S> main() { S> ruby_init(); ruby_init_loadpath(); /* to find the libraries */ S> ruby_script("embedded"); S> rb_load_file("embedded.rb"); S> ruby_run(); S> return 0; S> } S> I am asking because ' S> gcc -o embeddedRuby embeddedRuby.o -O2 -fpic S> -I/usr/lib/ruby/1.6/i386-linux -rdynamic -L/usr/lib/ruby/1.6/i386-linux S> -lruby add -ldl -lcrypt -lm Guy Decoux