On Sun, Jul 23, 2006 at 09:37:00AM -0400, David Golden wrote: > The approach in Params::Validate (and borrowed for version.pm) uses > ExtUtils::CBuilder, if installed, and otherwise tries manually against > the configured CC, rather than make: > > > system( "$Config{cc} -o test$Config{obj_ext} test.c" ) > > Which, as a fall-back, is hopefully a bit more portable. Frankly, I'm > not sure why it isn't just "$Config{cc} test.c", but I'm not very > compiler savvy.
The simplest reason that springs to mind is "what was the output file called, so that I can delete it?" I don't think that there's a standard across operating systems. Nicholas Clark