From: Tony Smith Date: 2001-11-27T23:40:56+09:00 Subject: [ruby-talk:26661] Embedding Ruby - scripts + extensions Hi All, I'm trying to figure out if a way to build a few Ruby scripts and a C++ extension into a single statically linked binary. I don't know if it's possible, but if anyone has some hints they'd be mightily welcome! The basic plan is to store the scripts as static strings (const char *) in some C++ code. In main(), I call rb_eval_string() - as there doesn't seem to be an rb_load_string() (in 1.6.4 at least) - to evaluate the scripts one by one. So first question: am I mad to try? If not, then is this the best way to go about it or is there a better way? rb2c maybe? Thanks! Tony