From: Chris Pine Date: 2001-01-11T08:56:57+09:00 Subject: [ruby-talk:9087] Embedded Ruby in VC++ 6.0 on Windows 2000 This is a multi-part message in MIME format. ------=_NextPart_000_008D_01C07B37.3CADBA50 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, all I got the 1.6.1 Windows release from http://www.pragmaticprogrammer.com = . Haven't had any problems with my straight Ruby code. It would be = much more useful to me embedded, though. I have my nice, little windows = program, #include "ruby.h", ruby_init(), etc., but I just don't know = what I'm supposed to link it to! I think I've linked it to just about = ever binary file that came in that distribution, and a few compiled with = no errors, but every one that did crashed as soon as it hit = "ruby_init()". I suspect I was linking into linux libraries or = something. (None of them ended in ".lib".) So I figured that the file I needed just wasn't included, so I'd have to = compile my own. I got the 1.6.2 source of the Ruby site, got all kinds = of cygwin stuff just so I'd have an 'rm' command (which the = documentation said I would need) and followed the instructions, of which = there were only five. I didn't get past three, though. I typed = 'nmake', lots of fun stuff happened, and I got 18 unresolved external = symbols. So, does anyone happen to know what I need to link into my C++ program, = or, if I have some greater problem, what it might be? Any help is much appreciated, Chris=20 ------=_NextPart_000_008D_01C07B37.3CADBA50 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello, all
 
I got the 1.6.1 Windows release from http://www.pragmaticprogramme= r.com=20 .  Haven't had any problems with my straight Ruby code.  It = would be=20 much more useful to me embedded, though.  I have my nice, little windows program, #include "ruby.h", = ruby_init(),=20 etc., but I just don't know what I'm supposed to link it to!  I = think I've=20 linked it to just about ever binary file that came in that distribution, = and a=20 few compiled with no errors, but every one that did crashed as soon as = it hit=20 "ruby_init()".  I suspect I was linking into linux libraries or=20 something.  (None of them ended in ".lib".)
 
So I figured that the file I needed = just wasn't=20 included, so I'd have to compile my own.  I got the 1.6.2 source of = the=20 Ruby site, got all kinds of cygwin stuff just so I'd have an 'rm' = command (which=20 the documentation said I would need) and followed the instructions, of = which=20 there were only five.  I didn't get past three, though.  I = typed=20 'nmake', lots of fun stuff happened, and I got 18 unresolved external=20 symbols.
 
So, does anyone happen to know = what I need to=20 link into my C++ program, or, if I have some greater problem, what it = might=20 be?
 
Any help is much = appreciated,
 
Chris =
------=_NextPart_000_008D_01C07B37.3CADBA50--