From: "Mauricio Fernández" Date: 2003-02-05T21:37:41+09:00 Subject: Re: Embedding Ruby in C code On Wed, Feb 05, 2003 at 09:26:58PM +0900, Szymon Drejewicz wrote: > How to compile this file: > > #include "ruby.h" > > main() { > ruby_init(); > ruby_script("embedded"); > rb_load_file("embedded.rb"); > ruby_run(); > return 0; > } > > Where 'embedded.rb' is: > > #!/usr/bin/ruby > puts "BLA BLA" > > ? > > I am asking because ' > gcc -o embeddedRuby embeddedRuby.o -O2 -fpic > -I/usr/lib/ruby/1.6/i386-linux -rdynamic -L/usr/lib/ruby/1.6/i386-linux > -lruby gcc -o embeddedRuby embeddedRuby.o -O2 -fpic \ -I/usr/lib/ruby/1.6/i386-linux -rdynamic -L/usr/lib/ruby/1.6/i386-linux \ -lruby -lm -ldl -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Let's call it an accidental feature. --Larry Wall