Hello Mattia,
I'm experiencing a problem compiling Wx for ActivePerl 5.8.9/MSWin32
using MSVC6. It happens because of an error in
Alien::wxWidgets::Utility, line 44:
my $b = ExtUtils::CBuilder->new( config => { cc => $cc, ld => $cc },
quiet => 1,
);
"cc" means compiler, and "ld" means linker and while it's the same for
gcc, it differs for MSVC, where "ld" should be "link".
These values are in %Config::Config so there's no need (in this
particular case) to pass them to ExtUtils::CBuilder.
After that, Wx 0.91 sadly fails anyway with the following message:
cl -GF -TP /c /nologo /TP /MD /O2 /W4 /GR /EHsc -c -I. -I..\..
-IC:\bin\dev\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_cl_0\lib
-IC:\bin\dev\perl\site\lib\A
lien\wxWidgets\msw_2_8_10_uni_cl_0\include
-IC:\bin\dev\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_cl_0\include
-nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSO
LE -DNO_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE
-DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
-DUSE_PERLIO -DPERL_MSVCRT_READFIX
-MD -Zi -DNDEBUG -O1 -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\"
"-IC:\bin\dev\perl\lib\CORE" -DWXPL_EXT -DWIN32 -D__WXMSW__ -D_UNICODE
-DWXUSINGDLL -D_WINDOWS -DNO
PCH -D_CRT_SECURE_NO_DEPRECATE FS.c
Command line warning D4025 : overriding '/W4' with '/W3'
Command line warning D4025 : overriding '/O2' with '/O1'
FS.c
C:\bin\dev\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_cl_0\include\wx/ffile.h(89)
: error C2065: 'my_perl' : undeclared identifier
C:\bin\dev\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_cl_0\include\wx/ffile.h(89)
: error C2227: left of '->pEof' must point to class/struct/union
C:\bin\dev\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_cl_0\include\wx/ffile.h(91)
: error C2227: left of '->pError' must point to class/struct/union
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
A far as I can guess, it may be similar to
http://rt.cpan.org/Public/Bug/Display.html?id=45922
--
Serguei Trouchelle