From: "Berger, Daniel" Date: 2005-10-27T00:59:50+09:00 Subject: Re: mkmf, linking against a specific DLL on windows > -----Original Message----- > From: nobuyoshi nakada [mailto:nobuyoshi.nakada@ge.com] > Sent: Wednesday, October 26, 2005 1:24 AM > To: ruby-talk ML > Subject: Re: mkmf, linking against a specific DLL on windows > > Cool, but you're going to have to make a check to see if dumpbin > > exists and use link -dump instead if it doesn't. > > Like this? > > if path = ENV["PATH"] > path = path.split(File::PATH_SEPARATOR) > else > path = %w[.] > end > dumpbin = "dumpbin.exe" > unless path.find {|dir| File.join(dir, dumpbin)} > dumpbin = "link.exe -dump" > end > > IO.foreach("|#{dumpbin} -symbols -exports " + objs.join(' ')) do |l| > ... > end > > -- > Nobu Nakada That should work, thanks. Can you confirm if your lib.exe has problems with spaces in path names? Thanks, Dan