From: hongseok.yoon@... Date: 2006-02-24T11:48:37+09:00 Subject: Re: compiling c program using rb_eval_string() You guys are really helpful !! I changed my code... int main() { ruby_init(); rb_eval_string( "puts" ); return 0; } and compiled it. [xopht@odin ruby]$ g++ -o test test.cc -lruby-static -L/home/xopht/lib/ -lcrypt -ldl now it works correctly !! thanks a lot !!