# Visual studio 2005

**URL:** <https://www.ruby-forum.com/t/visual-studio-2005/150811>\
**Category:** Ruby\
**Created:** [October 13, 2008, 5:01pm UTC](https://www.ruby-forum.com/t/visual-studio-2005/150811 "2008-10-13T17:01:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kuyarico](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e36b37/32.png) [@kuyarico](https://www.ruby-forum.com/u/kuyarico)\
**Post date:** [October 13, 2008, 5:01pm UTC](https://www.ruby-forum.com/t/visual-studio-2005/150811/1 "2008-10-13T17:01:42Z")

</div>

Hi guys,

I am newbie for ruby, but I used vs studio for long time. I searched  
this forum for informations about how to build exentions for buy with  
visual studio 2005 (c++), but I didn’t get a clear answer, could anyone  
tell me how to build the ruby extention with visual studio 2005 (c++)? I  
try to use SWIG, but building the the simplest examples give me a lot of  
link errors after I did comment out some lines in the config.h. Could  
anyone post a sample project about how to build the c++ extention?

thanks  
Eric

---

<div class="post-metadata">

**Author:** ![kuyarico](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e36b37/32.png) [@kuyarico](https://www.ruby-forum.com/u/kuyarico)\
**Post date:** [October 13, 2008, 8:41pm UTC](https://www.ruby-forum.com/t/visual-studio-2005/150811/2 "2008-10-13T20:41:38Z")

</div>

> I am newbie for ruby, but I used vs studio for long time. I searched  
> this forum for informations about how to build exentions for buy with  
> visual studio 2005 (c++), but I didn’t get a clear answer, could anyone  
> tell me how to build the ruby extention with visual studio 2005 (c++)? I  
> try to use SWIG, but building the the simplest examples give me a lot of  
> link errors after I did comment out some lines in the config.h. Could  
> anyone post a sample project about how to build the c++ extention?

I think the word on the street is that you should compile with VC6.  
That or use mingw 🙂  
There is also an integrated Visual IDE with IronRuby [I think].  
[http://www.ruby-forum.com/topic/167508#new](http://www.ruby-forum.com/topic/167508#new)  
Sorry I can’t be of more help.  
-=RDCP

---

<div class="post-metadata">

**Author:** ![kuyarico](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e36b37/32.png) [@kuyarico](https://www.ruby-forum.com/u/kuyarico)\
**Post date:** [October 13, 2008, 9:37pm UTC](https://www.ruby-forum.com/t/visual-studio-2005/150811/3 "2008-10-13T21:37:12Z")

</div>

Roger P. wrote:

> I think the word on the street is that you should compile with VC6.  
> That or use mingw 🙂  
> There is also an integrated Visual IDE with IronRuby [I think].  
> [[ANN] Free Ruby In Steel IDE includes free Visual Studio - Ruby - Ruby-Forum](http://www.ruby-forum.com/topic/167508#new)  
> Sorry I can’t be of more help.

VC6 is out of question for me as there are many tools I used can’t be  
compiled with vc6. IronRuby may be an option, but that may be too risky  
for me as I need to compile so many libs with that new compiler. But I  
do find some discussion about the issues with vs 2005, however, there is  
no definite solution for the issues raised in the discussion. Could  
someone shed some lights on this issue? can or can’t, both fine with me,  
but at least let new guys like me to know the issues.

> -=RDCP

---

<div class="post-metadata">

**Author:** ![kuyarico](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e36b37/32.png) [@kuyarico](https://www.ruby-forum.com/u/kuyarico)\
**Post date:** [October 13, 2008, 9:52pm UTC](https://www.ruby-forum.com/t/visual-studio-2005/150811/4 "2008-10-13T21:52:52Z")

</div>

Roger P. wrote:

> There is also an integrated Visual IDE with IronRuby [I think].  
> [[ANN] Free Ruby In Steel IDE includes free Visual Studio - Ruby - Ruby-Forum](http://www.ruby-forum.com/topic/167508#new)

Just to clarify, Ruby In Steel has a free edition for standard Ruby  
hosted in Visual Studio 2008, a free edition for IronRuby (VS2008), a  
lowcost ‘Text Edition’ ($49 including optionally a Ruby-specific version  
of VS2008), plus our high-end Developer Edition (for both VS2008 and  
VS2005). While the commercial editions support multi-language projects  
(e.g. Ruby and C# or C++ in the same Solution), we do not have any  
particular support for C++ (which I think is what the original  
questioner was interested in) beyond what is already in Visual Studio.

best wishes  
Huw C.

SapphireSteel Software  
Ruby and Rails In Visual Studio  
[http://www.sapphiresteel.com](http://www.sapphiresteel.com)

---

<div class="post-metadata">

**Author:** ![kuyarico](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e36b37/32.png) [@kuyarico](https://www.ruby-forum.com/u/kuyarico)\
**Post date:** [October 14, 2008, 3:09pm UTC](https://www.ruby-forum.com/t/visual-studio-2005/150811/5 "2008-10-14T15:09:26Z")

</div>

hi Huw C.,

thanks for your reply.

the problem I have now is that I want to hook up my codes (all c++  
developed in visual studio 2005) with SketchUp (google product).  
SketchUp has a ruby interface so that I can grep data from model and  
dump them into my codes, and my codes will spit the results back to  
SketchUp through Ruby interface.  
Now the questions are:  
a. how can I compiled my codes into dll so that ruby can call ( can  
“ruby in steel” do it?)  
b. Installation issues as it all relates with .net and sketchup or any  
other application should be able to find the system lib. I am not sure  
whether SketchUp has manifest files, but if not, that will that affect  
the plugin? If it is vc6.0, then you can copy system dlls around, but it  
is not the case with .net.

hope anyone can give some inputs. If ruby talks vs2005, it is huge gains  
for all.

Eric

Huw C. wrote:

> Roger P. wrote:
> 
> > There is also an integrated Visual IDE with IronRuby [I think].  
> > [[ANN] Free Ruby In Steel IDE includes free Visual Studio - Ruby - Ruby-Forum](http://www.ruby-forum.com/topic/167508#new)
> 
> Just to clarify, Ruby In Steel has a free edition for standard Ruby  
> hosted in Visual Studio 2008, a free edition for IronRuby (VS2008), a  
> lowcost ‘Text Edition’ ($49 including optionally a Ruby-specific version  
> of VS2008), plus our high-end Developer Edition (for both VS2008 and  
> VS2005). While the commercial editions support multi-language projects  
> (e.g. Ruby and C# or C++ in the same Solution), we do not have any  
> particular support for C++ (which I think is what the original  
> questioner was interested in) beyond what is already in Visual Studio.
> 
> best wishes  
> Huw C.
> 
> SapphireSteel Software  
> Ruby and Rails In Visual Studio  
> [http://www.sapphiresteel.com](http://www.sapphiresteel.com)

---

<div class="post-metadata">

**Author:** ![kuyarico](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e36b37/32.png) [@kuyarico](https://www.ruby-forum.com/u/kuyarico)\
**Post date:** [October 14, 2008, 4:17pm UTC](https://www.ruby-forum.com/t/visual-studio-2005/150811/6 "2008-10-14T16:17:44Z")

</div>

Eric Teng wrote:

> a. how can I compiled my codes into dll so that ruby can call ( can  
> “ruby in steel” do it?)

We don’t have any additions to the Ruby interpreter/libraries so nothing  
special for calling DLLs from Ruby. Apart from mixed language .NET  
solutions the only special type of ‘interop’ we have is supplied by the  
Ruby Connector. This is a free widget that lets .NET programs  
communicate with the standard Ruby interpreter. I think this may be the  
opposite of what you need but you may want to take a look just in case  
it’s useful to you…

Download and watch a tutorial on the Ruby Connector here:  
[http://www.sapphiresteel.com/SapphireSteel-Downloads](http://www.sapphiresteel.com/SapphireSteel-Downloads)

best wishes  
Huw

SapphireSteel Software  
Ruby and Rails In Visual Studio  
[http://www.sapphiresteel.com](http://www.sapphiresteel.com)

---

<div class="post-metadata">

**Author:** ![kuyarico](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/e36b37/32.png) [@kuyarico](https://www.ruby-forum.com/u/kuyarico)\
**Post date:** [October 14, 2008, 3:09pm UTC](https://www.ruby-forum.com/t/visual-studio-2005/150811/7 "2008-10-14T15:09:59Z")

</div>

Huw C. wrote:

> Just to clarify, Ruby In Steel has a free edition for standard Ruby  
> hosted in Visual Studio 2008, a free edition for IronRuby (VS2008)

Huw is quite correct. This was mentioned on a recent thread. FYI:

[http://www.ruby-forum.com/topic/167508#new](http://www.ruby-forum.com/topic/167508#new)
