in reply to Re^2: Cannot compile Encode::Detect on Windows
in thread Cannot compile Encode::Detect on Windows

That adds the -TP to the compiler commands for every file, rather than just the one that needs it. In this case, that doesn't seem to prevent the rest from compiling ok, but is that always true?

But I don't see how to use that syntax to remove unneeded options?

Didn't you see all the noise and errors that I'm seeing at the linker stage?

Using response files instead of huge command lines is a step forward over EU::MM--but automatically deleting them so the programmer cannot look to see what options were used and perhaps try adjusting them, before sitting down to try and work out how to pursuade build.pl to produce what you've discovered works, is three steps backward.

C:\Perl64\packages\Encode-Detect-1.01>makefile CC="cl -TP" # running Build.PL --config cc=cl -TP C:\Perl64\bin\perl.exe Build.PL --config cc=cl -TP Checking whether your kit is complete... Looks good Checking prerequisites... Looks good Creating new 'Build' script for 'Encode-Detect' version '1.01' C:\Perl64\packages\Encode-Detect-1.01>nmake Microsoft (R) Program Maintenance Utility Version 9.00.21022.08 Copyright (C) Microsoft Corporation. All rights reserved. C:\Perl64\bin\perl.exe Build --makefile_env_macros 1 cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\CharDistribution.obj" "src\CharDistribution.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release CharDistribution.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\JpCntx.obj" "src\JpCntx.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release JpCntx.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\LangBulgarianModel.obj" "src\LangBulgarianModel.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release LangBulgarianModel.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\LangCyrillicModel.obj" "src\LangCyrillicModel.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release LangCyrillicModel.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\LangGreekModel.obj" "src\LangGreekModel.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release LangGreekModel.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\LangHebrewModel.obj" "src\LangHebrewModel.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release LangHebrewModel.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\LangHungarianModel.obj" "src\LangHungarianModel.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release LangHungarianModel.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\LangThaiModel.obj" "src\LangThaiModel.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release LangThaiModel.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\nsBig5Prober.obj" "src\nsBig5Prober.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release nsBig5Prober.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\nsCharSetProber.obj" "src\nsCharSetProber.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release nsCharSetProber.cpp src\nsCharSetProber.cpp(77) : warning C4244: '=' : conversion from '__ +int64' to 'PRUint32', possible loss of data src\nsCharSetProber.cpp(122) : warning C4244: '=' : conversion from '_ +_int64' to 'PRUint32', possible loss of data cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\nsEscCharsetProber.obj" "src\nsEscCharsetProber.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release nsEscCharsetProber.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\nsEscSM.obj" "src\nsEscSM.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release nsEscSM.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\nsEUCJPProber.obj" "src\nsEUCJPProber.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release nsEUCJPProber.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\nsEUCKRProber.obj" "src\nsEUCKRProber.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release nsEUCKRProber.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\nsEUCTWProber.obj" "src\nsEUCTWProber.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release nsEUCTWProber.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\nsGB2312Prober.obj" "src\nsGB2312Prober.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release nsGB2312Prober.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\nsHebrewProber.obj" "src\nsHebrewProber.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release nsHebrewProber.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\nsLatin1Prober.obj" "src\nsLatin1Prober.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release nsLatin1Prober.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\nsMBCSGroupProber.obj" "src\nsMBCSGroupProber.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release nsMBCSGroupProber.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\nsMBCSSM.obj" "src\nsMBCSSM.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release nsMBCSSM.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\nsSBCharSetProber.obj" "src\nsSBCharSetProber.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release nsSBCharSetProber.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\nsSBCSGroupProber.obj" "src\nsSBCSGroupProber.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release nsSBCSGroupProber.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\nsSJISProber.obj" "src\nsSJISProber.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release nsSJISProber.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\nsUniversalDetector.obj" "src\nsUniversalDetector.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release nsUniversalDetector.cpp cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise -I"C:\Perl64\lib\CORE" -I"\include" -o +"src\nsUTF8Prober.obj" "src\nsUTF8Prober.cpp" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release nsUTF8Prober.cpp Copying Detect.pm -> blib\lib\Encode\Detect.pm Copying Detector.pm -> blib\lib\Encode\Detect\Detector.pm Copying Detector.xs -> lib\Encode\Detect\Detector.xs lib\Encode\Detect\Detector.xs -> lib\Encode\Detect\Detector.c Use of uninitialized value $ExtUtils::ParseXS::report_args in concaten +ation (.) or string at C:/Perl64/lib/ExtUtils/ParseXS.pm line 515, <G +EN36> line 71. cl -TP -c -I"src" -nologo -GF -W3 -MD -Zi -DNDEBUG -Ox -GL -fp:precise + -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVAT +IVE -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT + -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDE +BUG -Ox -GL -Wp64 -fp:precise "-DXS_VERSION=\"1.01\"" "-DVERSION=\"1. +01\"" -I"C:\Perl64\lib\CORE" -I"\include" -o "lib\Encode\Detect\Detec +tor.obj" "lib\Encode\Detect\Detector.c" cl : Command line warning D9035 : option 'Wp64' has been deprecated an +d will be removed in a future release cl : Command line warning D9035 : option 'o' has been deprecated and w +ill be removed in a future release Detector.c lib\Encode\Detect\Detector.xs(79) : warning C4267: 'argument' : conver +sion from 'size_t' to 'PRUint32', possible loss of data lib\Encode\Detect\Detector.xs(109) : warning C4267: 'argument' : conve +rsion from 'size_t' to 'PRUint32', possible loss of data ExtUtils::Mkbootstrap::Mkbootstrap('blib\arch\auto\Encode\Detect\Detec +tor\Detector.bs') Generating script 'lib\Encode\Detect\Detect.lds' dlltool --def "lib\Encode\Detect\Detect.def" --output-exp "lib\Encode\ +Detect\Detect.exp" 'dlltool' is not recognized as an internal or external command, operable program or batch file. link -o "blib\arch\auto\Encode\Detect\Detector\Detector.dll" -Wl,--bas +e-file,"lib\Encode\Detect\Detect.base" -Wl,--image-base,0x27110000 -d +ll -nologo -nodefaultlib -debug -opt:ref,icf -ltcg -libpath:C:\Perl64 +\lib\CORE -machine:AMD64 -lstdc++ "lib\Encode\Detect\Detect.lds" "lib +\Encode\Detect\Detect.exp" LINK : warning LNK4044: unrecognized option '/o'; ignored LINK : warning LNK4044: unrecognized option '/Wl,--base-file,lib\Encod +e\Detect\Detect.base'; ignored LINK : warning LNK4044: unrecognized option '/Wl,--image-base,0x271100 +00'; ignored LINK : warning LNK4044: unrecognized option '/lstdc++'; ignored LINK : fatal error LNK1181: cannot open input file 'blib\arch\auto\Enc +ode\Detect\Detector\Detector.dll' dlltool --def "lib\Encode\Detect\Detect.def" --output-exp "lib\Encode\ +Detect\Detect.exp" --base-file "lib\Encode\Detect\Detect.base" 'dlltool' is not recognized as an internal or external command, operable program or batch file. link -o "blib\arch\auto\Encode\Detect\Detector\Detector.dll" -Wl,--ima +ge-base,0x27110000 -dll -nologo -nodefaultlib -debug -opt:ref,icf -lt +cg -libpath:C:\Perl64\lib\CORE -machine:AMD64 -lstdc++ "lib\Encode\De +tect\Detect.lds" "lib\Encode\Detect\Detect.exp" LINK : warning LNK4044: unrecognized option '/o'; ignored LINK : warning LNK4044: unrecognized option '/Wl,--image-base,0x271100 +00'; ignored LINK : warning LNK4044: unrecognized option '/lstdc++'; ignored LINK : fatal error LNK1181: cannot open input file 'blib\arch\auto\Enc +ode\Detect\Detector\Detector.dll' Manifying blib\lib/Encode/Detect.pm -> blib\libdoc\Encode.Detect.3 Manifying blib\lib/Encode/Detect/Detector.pm -> blib\libdoc\Encode.Det +ect.Detector.3 HTMLifying blib\lib\Encode\Detect.pm -> blib\libhtml\site\lib\Encode\D +etect.html Build: blib\lib\Encode\Detect.pm: cannot resolve L<Encode> in paragrap +h 18. HTMLifying blib\lib\Encode\Detect\Detector.pm -> blib\libhtml\site\lib +\Encode\Detect\Detector.html

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."

Replies are listed 'Best First'.
Re^4: Cannot compile Encode::Detect on Windows
by syphilis (Archbishop) on Apr 18, 2009 at 11:44 UTC
    Didn't you see all the noise and errors that I'm seeing at the linker stage?

    Yes - I see the same as you. Last night I didn't have much time to investigate - tonight I *do* have the time, but it looks to me that we're dealing with Module::Build issues, and that means I don't have the inclination. (It's not a matter of not caring ... rather a matter of wanting to avoid the feelngs of extreme annoyance that invariably arise within me whenever I *do* investigate Module::Build.)

    Coming up with a solution that involves only ExtUtils::MakeMaker and that works on Windows does, however, strike me as the sort of exercise that I ought to do. (It will probably be no less aggravating than investigating Module::Build ;-)

    Cheers,
    Rob