Embedding Ruby

Hi there,

as a personal excercise I'd like to write a native little ruby starter (with splashscreen) for my scripts.

In VS.NET I created a Starter.cpp and included the "ruby.h" as mentioned in the docs. At compilation he doesn't find the extern symbols for _rb_init() etc. My guess was to link to some DLL stuff, but after a time googeling I hope that someone here can point me on some docs for further help.

Thanks a lot.

···

--
Daniel Völkerts
Protected by Anti Pesto.

Daniel Völkerts wrote:

Hi there,

In VS.NET I created a Starter.cpp and included the "ruby.h" as mentioned
in the docs. At compilation he doesn't find the extern symbols for
_rb_init() etc. My guess was to link to some DLL stuff, but after a time
googeling I hope that someone here can point me on some docs for further
help.

Thanks a lot.

Hi,

You'll need to add one of these libraries to your project:

Big static library containg all the object modules --
  C:\ruby\lib\msvcrt-ruby18-static.lib

Small dynamic lib with pointers into the runtime DLL --
  C:\ruby\lib\msvcrt-ruby18.lib

Sorry if that's not enough help (I use other compiler tools).

daz

daz schrieb:

Sorry if that's not enough help (I use other compiler tools).

Great! Thanks a lot. I had a look into the lib directory but I didn't know which one to choose. Working great with the dynamic once.

After re-reading my orignal post I has to say that it was a bit misleading. Apologize for that.

g,

···

--
Daniel Völkerts
Protected by Anti Pesto.