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 !!