Issue #4585 has been reported by Felix Petriconi.

----------------------------------------
Bug #4585: DLEXT in win32/Makefile.sub is not correct for building with VisualStudio 2008
http://redmine.ruby-lang.org/issues/4585

Author: Felix Petriconi
Status: Open
Priority: Normal
Assignee: 
Category: build
Target version: 
ruby -v: ruby 1.9.2p180 (2011-02-18) [i386-mswin32_90]


The value of DLEXT is defined per Win32/Makefile.sub as 
#define DLEXT ".so" 
which results not in the expected file extension for working under Windows with Visual Studio 2005/2008.

I stepped over this problem when I tried to build Ruby with this compiler and then by creating an extension to C++ code by using the SWIG (2.0.3) library.
As I am not familiar with the build process with MinGW and I do not know if there is the intention to use the .so extension under Windows, I hesitate to patch this in the Ruby repository.

My proposal to change/fix this is

(({!if $(MSC_VER) >= 1400
#define DLEXT ".DLL"
!else
#define DLEXT ".so"
!endif}))

As well I propose to print into the console the complete name of the library that was attempted to load. Currently only the 'require' value is written. Which did not help me solving this problem. 




-- 
http://redmine.ruby-lang.org