Try installing Perl.pm. At least last time I tried, their %Config
override didn't override enough, and it ended up passing MSVC switches
to GCC.
No problems with that module for me on ActivePerl/MinGW/dmake.
Yes, I am a little annoyed here
. I spent rather more time than I
would have liked trying to figure out what on Earth was going on, and
why some people seemed to have an ActivePerl that kind-of worked with
GCC whereas mine absolutely didn't (I have MSVC6, and it was in my
PATH).
I think it's the inclusion of MSVC6 in the path that's the problem.
This (from the ActivePerl::Config documentation) is probably all you
needed to see:
$Config{make}
This will be "nmake" by default, but if no nmake program can be
found and other compatible make programs are found, then this
value
will reflect that. Currently dmake is the only other make
implementation that is compatible enough to build perl extensions.
$Config{cc}, $Config{ccflags},...
The value of $Config{cc} will be "cl" by default, but if no "cl"
program can be found and gcc is found, then this value is "gcc"
and
other values related to the compiler environment is adjusted
accordingly.
The ACTIVEPERL_CONFIG_CC environment variable can be set to "gcc"
to
use "gcc" even when "cl" is found.
I've just checked that adding MSVC6 to the end of the path is a
showstopper (wrt MinGW) - and it is.
And setting ACTIVEPERL_CONFIG_CC to gcc, does override MSVC6 as
advertised - though you still have to use 'nmake' as your make
utility. (I initially assumed that I would then use 'dmake' - but
there's nothing in the documentation to support that assumption
The other thing that should be mentioned is that you have to be using
a recent release of ActivePerl (anything from the last year, maybe
even last 2 years) for this to work reliably. There were some bugs in
the early attempts to get the alternative Config set up correctly.
Even now there is still the potential for problems to arise - $Config
{incpath} and $Config{libpth} are not being overridden when gcc is in
use. (I've recently submitted a bugzilla report for this. Hopefully,
it will be addressed in the future.)
I don't know. I presume you've reported this in the appropriate place
(which appears to be the Perl-Dist-Strawberry RT queue, AFAICS)? It
seems like a trivial thing to fix, if it's causing real problems.
Yes - I reported it to a Strawberry Perl wiki (which was the
appropriate place at the time). I think Adam felt that it wasn't
"causing real problems", which I'm not going to argue with - given
that no-one else has ever complained about it.
Cheers,
Rob