Hello,

In message "Ruby and MSVC++"
    on Apr.12,2002 16:03:10, <anton / webstroy.ru> wrote:
| /nologo /MTd /W3 /Gm /GX /ZI /Od /I
| "D:\ruby-1.6.7-mswin\lib\ruby\1.6\i586-mswin32" /D "WIN32" /D "_DEBUG" /D
| "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "TSTRUBY_EXPORTS"
| /Fp"Debug/tstruby.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ  /c

Add /D "NT" and /D "IMPORT".

If you don't hate commandline operation, the most easy way
is to write and to use extconf.rb.

Example:

  C:\somewhere>copy con extconf.rb
  #!ruby
  require 'mkmf'
  create_makefile('tstruby')
  ^Z
  
  C:\somewhere>ruby extconf.rb
  creating Makefile
  
  C:\somewhere>nmake
  ...
  
  C:\somewhere>nmake install


If you want to know details, see README.EXT.


Regards
--
U.Nakamura <usa / osb.att.ne.jp>