Embedding Ruby

D

Daniel Völkerts

Hi there,

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

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

Thanks a lot.
--=20
Daniel V=F6lkerts
Protected by Anti Pesto.
 
D

daz

Daniel said:
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
 
D

Daniel Völkerts

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=20
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=20
misleading. Apologize for that.

g,
--=20
Daniel V=F6lkerts
Protected by Anti Pesto.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,197
Messages
2,571,040
Members
47,634
Latest member
RonnyBoelk

Latest Threads

Top