From: Luis Lavena Date: 2009-11-22T04:05:22+09:00 Subject: Re: extending ruby with c++ on windows On Nov 21, 10:35 am, Al Lo wrote: > thanks for explanation. i will not take care about trying to get dll. > > make.bat contains next text: > "@echo off > mingw32-make %*" > that's why i used "mingw32-make" > Dunno where you got that make.bat, this is the original make.bat content: @ECHO OFF SETLOCAL SET DEVKIT=%~dp0..\devkit SET PATH=%DEVKIT%\gcc\3.4.5\bin;%DEVKIT%\msys\1.0.11\bin bash.exe --login -i -c "make %*" > it is still difficult to understand to me why mkmf generates such wrong > pass with "/C/" in th beginning. there is this rows: > topdir = /C/Ruby19/include/ruby-1.9.1 > hdrdir = /C/Ruby19/include/ruby-1.9.1 > mkmf will generate MSYS paths, used by msys-make, as you can see from the wrapper make.bat I recommend you clean your current DevKit installation and verify the proper batch files are being used. A second recommendation, unless you're really using C++ (which I doubt since Ruby extension API is C), please name the files .c instead -- Luis Lavena