From: "Darryl L. Pierce" Date: 2011-06-24T22:12:03+09:00 Subject: Re: Explicitly setting compiler to C++ in extconf.rb... --Ycz6tD7Th1CMF4v7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 24, 2011 at 11:22:22AM +0900, Michael Edgar wrote: > On Jun 23, 2011, at 10:07 PM, Darryl L. Pierce wrote: >=20 > > On 06/23/2011 07:39 PM, Michael Edgar wrote: > >>=20 > >> require 'mkmf' > >> have_library('stdc++') > >> create_makefile('laser/BasicBlock') > >>=20 > >> That's a working extconf.rb for a gem I'm actively working on. Adding = stdc++ > >> makes mkmf use g++ on my system. > >=20 > > Hrm, no joy. It's still failing with the same error in mkmf.log. >=20 >=20 > Just checked, and you're right - same thing happens to me if I insert > a "have_header" for one of my header files. It's failing because mkmf > is creating a file called "conftest.c" and not "conftest.cc" - changing t= he > name of the file makes it work. Ugh. >=20 > It looks like a bug in mkmf.rb:407, in "cpp_command," it uses CONFTEST_C > which ends in .c . I see you already reported this issue [1]. Thanks. :) [1] http://redmine.ruby-lang.org/issues/4924 --=20 Darryl L. Pierce http://mcpierce.multiply.com/ "What do you care what people think, Mr. Feynman?" --Ycz6tD7Th1CMF4v7 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk4EjR0ACgkQtddqM0QFuLIZzwCg6oIzH+dO9UoYeKzUxc2qy+ED cZEAn0yrvh+R1vyswAoTDlAuIeK+MBIK =cRRV -----END PGP SIGNATURE----- --Ycz6tD7Th1CMF4v7--