From: "Lucas L." Date: 2008-09-26T09:59:11+09:00 Subject: Re: mkmf can't find lib then gives target pattern contains no % Tim Hunter wrote: > Check the mkmf.log file. It should give you some indication as to why it > checking for STAFRegister in STAF.lib failed. Whoops, I knew I'd forget something. I did try, but I couldn't make any sense of it. Here it is: have_library: checking for STAFRegister() in STAF.lib... -------------------- no "cl -nologo -Feconftest -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -MD -Zi -O2b2xg- -G6 conftest.c msvcrt-ruby18-static.lib STAF.lib oldnames.lib user32.lib advapi32.lib ws2_32.lib -link -libpath:"." -libpath:"c:/ruby/lib" -stack:0x2000000" checked program was: /* begin */ 1: #define WIN32_LEAN_AND_MEAN 2: #include 3: #include 4: 5: /*top*/ 6: int main() { return 0; } 7: int t() { void ((*volatile p)()); p = (void ((*)()))STAFRegister; return 0; } /* end */ "cl -nologo -Feconftest -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I. -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -MD -Zi -O2b2xg- -G6 conftest.c msvcrt-ruby18-static.lib STAF.lib oldnames.lib user32.lib advapi32.lib ws2_32.lib -link -libpath:"." -libpath:"c:/ruby/lib" -stack:0x2000000" checked program was: /* begin */ 1: /*top*/ 2: int main() { return 0; } 3: int t() { STAFRegister(); return 0; } /* end */ -------------------- That doesn't really tell me anything except it couldn't find STAFRegister. Not quite sure what those programs are. -- Posted via http://www.ruby-forum.com/.