From: "Darryl L. Pierce" Date: 2011-06-24T22:09:10+09:00 Subject: Re: Explicitly setting compiler to C++ in extconf.rb... --4ZLFUWh1odzi/v6L 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 . Ugh. So, for now, I'll have to ignore checking for the headers and just file a bug against mkmf to support C++ header checks. --=20 Darryl L. Pierce http://mcpierce.multiply.com/ "What do you care what people think, Mr. Feynman?" --4ZLFUWh1odzi/v6L Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk4EjG8ACgkQtddqM0QFuLIiswCeN1jFwqnOgRg+/+U9cC+SBu9t Ko4An2Iw13I/o2Mmb3l00Lvq2S9AQpzg =/RnI -----END PGP SIGNATURE----- --4ZLFUWh1odzi/v6L--