From: Jeremy H. <je...@ch...> - 2006-04-22 18:50:21
|
On Fri, Apr 21, 2006 at 06:22:26AM -0500, Albert Chin wrote: > Unfortunately, neither the Solaris C compiler will recognize .cc as > a C++ file and call CC nor will the HP-UX C compiler. According to a discussion on the fltk-dev list .cxx is more portable. The fact is that ".cxx" is the ONLY extension that can be used on all the platforms that FLTK supports. ".cpp" is *not* supported by a large number of commercial UNIX C++ compilers, ".C" is *not* supported by Windows or MacOS X, and ".cc" is *not* supported by Windows. I have attached a version of extconf.rb that uses conftest.cxx for the feature tests. Does it work for you? > That's why we need a way to explicitly set the C++ compiler I'm studying how to do that, unfortunately it depends on the details of rbconfig.rb and mkmf.rb which are very messy (that's why I'm *really* hoping the attached version of extconf.rb will fix things and save me the trouble). I have also asked for help on comp.lang.ruby . If the attached extconf.rb doesn't work, can you send me your system's versions of rbconfig.rb and mkmf.rb , plus the Makefile and mkmf.rb created by "ruby extconf.rb"? Also, can you confirm that running "fltk-config --cxx" on the command line prints the name of the correct C++ compiler? If it does then extconf.rb will be able to determine the right compiler automatically and I won't need to add a build flag. Sorry to bother you for these details but this is messy OS-dependent stuff and I don't (yet) have a quick fix. Regards, Jeremy Henty |