Subject: | Cannot compile Wx on Windows XP |
Windows XP, ActivePerl 5.10.0.1005, TDM-1 MinGW32 4.4.0
Alien::wxWidgets 0.43
When trying to
Show quoted text
cpan> install Wx
I get the attached error.
Alien::wxWidgets compiled just fine. If I try to compile with the
standard MinGW 4.3.0-alpha-testing compiler, the above failure won't
occur, however building Wx.dll will fail due to numerous "undefined
reference ..." errors, even though the gcc command appears to be ok and
all required libraries are included. (I'd have also attached the error
log, however I forgot to save the output and already replaced 4.3.0
with 4.4.0)
Subject: | ErrorLog.txt |
cp lib/Wx/FS.pm ..\..\blib\lib\Wx\FS.pm
C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp -noprototypes -nolinenumbers -typemap C:\Perl\lib\ExtUtils\typemap -typemap ..\..\typemap -typemap typemap FS.xs > FS.xsc && C:\Perl\bin\perl.exe -MExtUtils::Command -e mv FS.xsc FS.c
g++ -fvtable-thunks -O2 -mthreads -Os -c -I. -I..\.. -IC:\Perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\lib -IC:\Perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\include -IC:\Perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\include -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS-DUSE_PERLIO -DPERL_MSVCRT_READFIX -DHASATTRIBUTE -fno-strict-aliasing -mms-bitfields -O2 -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" "-IC:\Perl\lib\CORE" -DWXPL_EXT -DHAVE_W32API_H -D__WXMSW__ -D_UNICODE -DWXUSINGDLL -DNOPCH -DNO_GCC_PRAGMA FS.c
cc1plus.exe: warning: switch '-fvtable-thunks' is no longer supported
In file included from C:\Perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\include/wx/wfstream.h:23,
from cpp/fshandler.h:69,
from FS.c:206:
C:\Perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\include/wx/ffile.h: In member function 'bool wxFFile::Eof() const':
C:\Perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\include/wx/ffile.h:89: error: 'my_perl' was not declared in this scope
C:\Perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\include/wx/ffile.h: In member function 'bool wxFFile::Error() const':
C:\Perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\include/wx/ffile.h:91: error: 'my_perl' was not declared in this scope
FS.c: In function 'void boot_Wx__FS(PerlInterpreter*, CV*)':
FS.c:1040: warning: deprecated conversion from string constant to 'char*'
dmake: Error code 129, while making 'FS.o'
dmake: Error code 255, while making 'subdirs'
dmake: Error code 255, while making 'subdirs'
MBARBON/Wx-0.91.tar.gz
dmake -- NOT OK