# Embedding Ruby

**URL:** <https://www.ruby-forum.com/t/embedding-ruby/82982>\
**Category:** Ruby\
**Created:** [November 19, 2005, 3:21pm UTC](https://www.ruby-forum.com/t/embedding-ruby/82982 "2005-11-19T15:21:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3ec8ea/32.png) [@daniel](https://www.ruby-forum.com/u/daniel)\
**Post date:** [November 19, 2005, 3:21pm UTC](https://www.ruby-forum.com/t/embedding-ruby/82982/1 "2005-11-19T15:21:47Z")

</div>

Hi there,

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

In [VS.NET](http://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.

---

<div class="post-metadata">

**Author:** ![daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3ec8ea/32.png) [@daniel](https://www.ruby-forum.com/u/daniel)\
**Post date:** [November 20, 2005, 4:00am UTC](https://www.ruby-forum.com/t/embedding-ruby/82982/2 "2005-11-20T04:00:34Z")

</div>

Daniel Völkerts wrote:

> Hi there,
> 
> In [VS.NET](http://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

---

<div class="post-metadata">

**Author:** ![daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/3ec8ea/32.png) [@daniel](https://www.ruby-forum.com/u/daniel)\
**Post date:** [November 20, 2005, 3:28pm UTC](https://www.ruby-forum.com/t/embedding-ruby/82982/3 "2005-11-20T15:28:33Z")

</div>

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,
