C++ and ruby integration

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
Fear
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 9
Joined: Sun Nov 09, 2008 3:04 pm

C++ and ruby integration

Post 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! :)
Andy K.
Chaos Rift Junior
Chaos Rift Junior
Posts: 262
Joined: Sat Nov 29, 2008 6:15 pm
Location: Winchester, VA

Re: C++ and ruby integration

Post 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. :|
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: C++ and ruby integration

Post 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.
User avatar
M_D_K
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1087
Joined: Tue Oct 28, 2008 10:33 am
Favorite Gaming Platforms: PC
Programming Language of Choice: C/++
Location: UK

Re: C++ and ruby integration

Post 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
Gyro Sheen wrote:you pour their inventory onto my life
IRC wrote: <sparda> The routine had a stack overflow, sorry.
<sparda> Apparently the stack was full of shit.
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: C++ and ruby integration

Post by Falco Girgis »

M_D_K is the guy to talk to about SWIG. I admit to never actually using it before...
User avatar
M_D_K
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1087
Joined: Tue Oct 28, 2008 10:33 am
Favorite Gaming Platforms: PC
Programming Language of Choice: C/++
Location: UK

Re: C++ and ruby integration

Post 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.
Gyro Sheen wrote:you pour their inventory onto my life
IRC wrote: <sparda> The routine had a stack overflow, sorry.
<sparda> Apparently the stack was full of shit.
Fear
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 9
Joined: Sun Nov 09, 2008 3:04 pm

Re: C++ and ruby integration

Post 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
Post Reply