From: "Anton V.Kondakov" Date: 2002-04-12T16:58:45+09:00 Subject: Re: Ruby and MSVC++ Hello In both cases i get same error message :((( Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cl -DIMPORT -nologo -DNT=1 -Zi -MD -O2b2xg- -G5 -I. -Id:/ruby-1.6.7-mswi n/lib/ruby/1.6/i586-mswin32 -I. -Id:/ruby-1.6.7-mswin/include -c tstruby.cpp tstruby.cpp tstruby.cpp(25) : error C2664: 'rb_define_method' : cannot convert parameter 3 f rom 'unsigned long (unsigned long)' to 'unsigned long (__cdecl *)(...)' None of the functions with this name in scope match the target type tstruby.cpp(26) : error C2664: 'rb_define_method' : cannot convert parameter 3 f rom 'unsigned long (unsigned long,unsigned long)' to 'unsigned long (__cdecl *)( ...)' None of the functions with this name in scope match the target type NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. Anton Kondakov ----- Original Message ----- From: "U.Nakamura" To: "ruby-talk ML" Sent: Friday, April 12, 2002 11:36 AM Subject: Re: Ruby and MSVC++ > Hello, > > In message "Ruby and MSVC++" > on Apr.12,2002 16:03:10, 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 > > >