Actually, 'cl' is the MS C(++) compiler supplied with Microsoft Visual Studio. By default, if ActiveState Perl on Windows can't find a compiler in your path, this is what it assumes for 'perl -V:cc'. It seems to search your path in order for either 'cl' or 'gcc'. I have both MSVC++ and MinGW installed on Windows XP with ActiveState 5.10.1 (note: the 'which' command below is a Windows batch file found at Re: One Bizarre Perl Problem)
C:\> REM cl and gcc not in my path
C:\> which cl
'cl' not found.
C:\> which gcc
'gcc' not found.
C:\> perl -V:cc
cc='cl';
C:\> REM append gcc directory to path
C:\> path %PATH%;c:\Dev-Cpp\bin
C:\> which gcc
c:\Dev-Cpp\bin\gcc.exe
C:\> perl -V:cc
Set up gcc environment - 3.4.2 (mingw-special)
cc='c:/Dev-Cpp/bin/gcc.exe';
C:\> REM prepend cl directory to path
C:\> path C:\Program Files\Microsoft Visual Studio 8\VC\bin;%PATH%
C:\> which cl
C:\Program Files\Microsoft Visual Studio 8\VC\bin\cl.exe
C:\> perl -V:cc
cc='cl';
For ActiveState, the best (easiest, cheapest) way to go is:
ppm install MinGW
ppm install dmake
|