From: Al Lo Date: 2009-11-21T22:35:58+09:00 Subject: Re: extending ruby with c++ on windows 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" 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 as i wrote, i fixed this rows and get makefile and ran make. there is what i have on console: C:\temp\c2r>make g++ -I. -IC:/Ruby19/include/ruby-1.9.1/i386-mingw32 -IC:/Ruby19/include/ruby-1.9.1/ruby/backward -IC:/Ruby19/include/ruby-1.9.1 -I. -O2 -g -Wall -Wno-parentheses -o welcomer.o -c welcomer.cpp g++ -shared -s -o welcomer.so welcomer.o -L. -LC:/Ruby19/lib -L. -Wl,--enable-auto-image-base,--enable-auto-import -lmsvcrt-ruby191 -lshell32 -lws2_32 C:\temp\c2r>irb irb(main):001:0> require 'welcomer' LoadError: 127: =х эрщфхэр єърчрээр  яЁюЎхфєЁр. - Init_welcomer C:/temp/c2r/welcomer.so from (irb):1:in `require' from (irb):1 from C:/Ruby19/bin/irb:12:in `
' there are "welcomer.cpp" in attachments. i can't get what i'm doing wrong. Attachments: http://www.ruby-forum.com/attachment/4270/welcomer.cpp -- Posted via http://www.ruby-forum.com/.