From: Luis Lavena Date: 2009-11-20T21:20:08+09:00 Subject: Re: extending ruby with c++ on windows On Nov 20, 5:59 am, Al Lo wrote: > Thank you for answers. it was good idea. > but i still have problems. > i installed ruby in folder without spaces. relaunched "ruby extconf.rb" > and "make" than, as in tutorial. executing "make" with version 3.80 i > got the same error as before (makefile:145: *** target pattern contains > no `%'.  Stop.). building with "make" with version 3.81 i got next > message: > > mingw32-make: *** No rule to make target > `/C/Ruby19/include/ruby-1.9.1/ruby.h', > needed by `Welcomer.o'.  Stop. > i fixed in makefile row with path (corrected "/C/" to "C:/") and got > this response: > C:\temp\c2r>mingw32-make You shouldn't be using mingw32-make, but instead the make that comes with the DevKit (that is, using the wrapper make.bat) > > As i understand, error 2 means "The system cannot find the file > specified". > > This command generates two files: "Welcomer.o" and "Welcomer.so". One > more question is "is it normal that make generates .so file? maybe .dll > will be more suitable". ".so" are use to load Ruby extension. While is a DLL, it serves no purpose outside Ruby world. -- Luis Lavena