From: "Darryl L. Pierce" Date: 2011-06-24T11:07:32+09:00 Subject: Re: Explicitly setting compiler to C++ in extconf.rb... On 06/23/2011 07:39 PM, Michael Edgar wrote: > On Jun 23, 2011, at 7:30 PM, Antonio Terceiro wrote: > >> require 'rbconfig' >> RbConfig::CONFIG['CPP'] = RbConfig::CONFIG['CPP'].gsub('gcc', 'g++') >> require 'mkmf' >> have_header('string') or raise('You need') >> create_makefile('test') > > Don't do this. The following is sufficient: > > require 'mkmf' > have_library('stdc++') > create_makefile('laser/BasicBlock') > > That's a working extconf.rb for a gem I'm actively working on. Adding stdc++ > makes mkmf use g++ on my system. Hrm, no joy. It's still failing with the same error in mkmf.log. -- Darryl L. Pierce http://mcpierce.multiply.com/ "What do you care what people think, Mr. Feynman?"