Hi,

At Wed, 8 Dec 2004 05:02:32 +0900,
Stephen Kellett wrote in [ruby-talk:122839]:
> I'm trying to call a Ruby program from C and pass it some arguments.
> Here is a trivial program that demonstrates the problem. The Ruby
> documentation states that you can set the Ruby arguments using
> ruby_options. I know that if I pass no arguments it waits forever
> listening to STDIN. Thats fine. The problem is that when I do pass
> arguments Ruby just dies - no crash, nothing, just a silent exit.

What I got from your example (without NtIntialize) is:

  $ ./x
  arg1: No such file or directory -- arg2 (LoadError)

> Any idea what I'm doing wrong? Should I be using a different call to set
> the arguments?
> 
> I'm using Ruby 1.8.1

What's the exact version you are using, the result of `ruby -v'?

-- 
Nobu Nakada