Hi,

Yes, in my C extension Init_xxx function, I have a rb_require right after
the variable declarations and it works.  Then, I have some other C codes
such as class definitions.  When I have another rb_require, it resulted in
segmentation fault.

Is it an implied rule that in a C extension all the rb_require's should be
put at the beginning of the Init function?  If rb_require does not work,
should rb_load or rb_load_protect work in the middle of the Init
function?  At least in my case using rb_eval_string it works, but it
cannot handle multi-line Ruby statements.  Thanks.

Regards,

Bill
===========================================================================
Alva <alv / poczta.onet.pl> wrote:
> rb_require("conf.rb");

> works for me

> Tomek 'Alva' Wroblewski