Page 1 of 1

C++ and ruby integration

Posted: Fri Nov 28, 2008 12:25 pm
by Fear
Can someone help me integrating C++ source codes with ruby source codes in Dev-C++? I've looked for dev-paks, tutorials, but nothing was useful. If someone have a dev-pak or know how to do it, please post it HERE! :)

Re: C++ and ruby integration

Posted: Sun Nov 30, 2008 7:25 pm
by Andy K.
Oy vey, now that is a task in a half. I have chills just thinking about it.. but it can be done. I don't think I've ever been able to integrate C++ and Ruby fully, or maybe I'm just a noob. :|

Re: C++ and ruby integration

Posted: Sun Nov 30, 2008 9:39 pm
by Falco Girgis
SWIG is going to be your best bet:

http://www.swig.org/

SWIG would probably be your best bet for anything that wasn't specifically written as an embeddable scripting language. Perl, Python, Ruby, and that bunch.

Re: C++ and ruby integration

Posted: Mon Dec 01, 2008 11:05 am
by M_D_K
GyroVorbis wrote:SWIG is going to be your best bet:

http://www.swig.org/

SWIG would probably be your best bet for anything that wasn't specifically written as an embeddable scripting language. Perl, Python, Ruby, and that bunch.
Dude I wanted to be the SWIG advocate on this one.

But seriously SWIG is pretty kick ass. I haven't used Dev C++ in ages so I can't remember how to set it up, probably similar to Code::Blocks

Re: C++ and ruby integration

Posted: Mon Dec 01, 2008 11:21 am
by Falco Girgis
M_D_K is the guy to talk to about SWIG. I admit to never actually using it before...

Re: C++ and ruby integration

Posted: Mon Dec 01, 2008 11:35 am
by M_D_K
GyroVorbis wrote:M_D_K is the guy to talk to about SWIG. I admit to never actually using it before...
I guess :)

this should get you started: It doesn't look like there is a SWIG devpak or a ruby one either so just build the ruby library and SWIG and drop them in the right folders inside the DevCpp folder.

Re: C++ and ruby integration

Posted: Fri Dec 05, 2008 9:24 am
by Fear
GyroVorbis wrote:SWIG is going to be your best bet:

http://www.swig.org/

SWIG would probably be your best bet for anything that wasn't specifically written as an embeddable scripting language. Perl, Python, Ruby, and that bunch.
Thanks GyroVorbis! It's really useful! and thanks M_D_K and Andy K. for the support