From: Mark Hahn Date: 2001-12-31T03:58:52+09:00 Subject: [ruby-talk:29743] RE: Extending Ruby on Windows platform using VC++ IDE > it came out as a vanilla-flavored project I don't understand this. A project is a project, right? The only thing that presented a problem when converting to an msvc project, was getting the definition flags correct and knowing what source files to exclude. The project I sent should have that information. What I did was: 1) Build the Ruby source as per the instructions for msvc command line 2) Open vstudio and create a new project for the app and then add every file in the Ruby source folder to the project. 3) Build repeatedly removing files from project when multiple definition errors occured and adding defs when missing definition errors occured. When the build was successful I was done. -----Original Message----- From: Moyer [mailto:moyer4@mediaone.net] Sent: Sunday, December 30, 2001 10:16 AM To: Mark Hahn Subject: Re: Extending Ruby on Windows platform using VC++ IDE When I converted the attachment to a VC++ 6.0 project, it came out as a vanilla-flavored project and, I'm afraid, didn't provide any real guidance. I'm sending along more info on what I'm trying to do if you have the change to read the post to follow. Thanks, Al ----- Original Message ----- From: "Mark Hahn" Newsgroups: comp.lang.ruby Sent: Friday, December 28, 2001 11:29 PM Subject: Re: Extending Ruby on Windows platform using VC++ IDE > I've run Ruby 1.6.5 with the enclosed msvc project. Good luck. > > (I apologize if enclosures are forbidden here. This was only 1500 bytes). > > ----- Original Message ----- > From: "Alan Moyer" > Newsgroups: comp.lang.ruby > To: "ruby-talk ML" ; > Sent: Friday, December 28, 2001 6:56 PM > Subject: [ruby-talk:29613] Extending Ruby on Windows platform using VC++ IDE > > > > Hi, > > > > I'm extremely new to Ruby. I've been reading the Programming Ruby book. > Chap > > 17 - Extending Ruby discusses how to write a Ruby extension, writing a > > extconf.rb program and then running the make. However, the makefile is for > > the gcc compiler. > > > > I'm not a user of gcc and I do my C and C++ building using the MS VC++ > > product. Is there a description anywhere of how to set the project to > build > > the extension using VC++? > > > > I've done something similar with Java and JNI. In that case, the > > documentation makes it very easy to build a DLL that can be called from > > Java. Something similar would be a great help for Ruby. > > > > Thanks for any help, > > > > Al > > > > >