[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

How do I get mkmf.rb to run feature tests through C++ ?

Jeremy Henty

4/22/2006 2:37:00 PM

The feature test methods in mkmf.rb (have_type, have_header etc.) work
by creating conftest.c and compiling it with the same compiler that
built Ruby. What do you when your extension is written in C++ (like
Ruby/FLTK) and you must compile conftest.c with a C++ compiler?
Setting CONFTEST_C = "conftest.cc" works with gcc, because that
compiler recognises that *.cc is C++ source. But this doesn't work
with other compilers. Is there a better (ie. more portable) way?

Regards,

Jeremy Henty