From: "Nicolas Desprès" Date: 2006-03-24T18:46:43+09:00 Subject: Re: require 'tk' SEGV with Ruby embedded in C On 3/24/06, Nicolas Despr�s wrote: > I'm having trouble trying to embed Ruby in a C program. > Patching the program this way, solve the problem: > $ cat test.c > #include > EXTERN VALUE rb_progname; EXTERN VALUE rb_argv0; > int main() > { > ruby_init(); > ruby_script("test"); rb_argv0 = rb_progname; > ruby_init_loadpath(); > rb_eval_string("require 'tk'"); > return 0; > } I'm looking for a cleaner solution. Regards, -- Nicolas Despr�s