----- Original Message ----- From: "Mahmoud Mehyar" <mamod.meh...@gmail.com>

[snip]

gcc -c  -ID:/   -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE
-DNO_STR
ICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
-DUSE_PERLIO -
DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1         -DVERSION=\"0.00\"
-DXS_VER
SION=\"0.00\"  "-IE:\XAMPP\Perl\lib\CORE"   c_pl_2537.c
gcc.exe: unrecognized option `-nologo'
gcc.exe: unrecognized option `-GF'
gcc.exe: unrecognized option `-Zi'
gcc.exe: unrecognized option `-Zi'

Yep - they're Visual Studio flags and MinGW's gcc certainly won't recognise them. What does 'perl -V:ccflags' output ? It probably contains those symbols that gcc doesn't recognise, but it should (courtesy of the overrides in lib/ActivePerl/Config.pm) give you something like:

#################
C:\>perl -V:ccflags
ccflags=' -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -DPERL_MSVCRT_READFIX';
#################

[snip]

g++.exe: oldnames.lib: No such file or directory
g++.exe: kernel32.lib: No such file or directory
g++.exe: user32.lib: No such file or directory
g++.exe: gdi32.lib: No such file or directory
g++.exe: winspool.lib: No such file or directory
g++.exe: comdlg32.lib: No such file or directory
g++.exe: advapi32.lib: No such file or directory
g++.exe: shell32.lib: No such file or directory
g++.exe: ole32.lib: No such file or directory
g++.exe: oleaut32.lib: No such file or directory
g++.exe: netapi32.lib: No such file or directory
g++.exe: uuid.lib: No such file or directory
g++.exe: ws2_32.lib: No such file or directory
g++.exe: mpr.lib: No such file or directory
g++.exe: winmm.lib: No such file or directory
g++.exe: version.lib: No such file or directory
g++.exe: odbc32.lib: No such file or directory
g++.exe: odbccp32.lib: No such file or directory
g++.exe: msvcrt.lib: No such file or directory
dmake.exe:  Error code 129, while making
'blib\arch\auto\c_pl_2537\c_pl_2537.dll
'

Yep - those libnames don't exist in MinGW - though they do exist in Visual Studio. Can you check the output of 'perl -V:libs' and 'perl -V:perllibs'. You'll probably find that they give you the same list of libraries as compalined about above. However, they should (courtesy of the overrides provided by lib/ActivePerl/Config.pm) be giving you something like:

#################
C:\>perl -V:libs
libs='-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32';
#################

There is something seriously wrong with your ActivePerl's utilisation of the MinGW compiler. While it's in that condition you won't even be able to compile *any* extensions (ie modules containing C/XS code).

What does 'perl -V:cc' and 'perl -V:make' show ? (They need to specify your gcc compiler and dmake respectively - otherwise none of this will work.)
Can you also provide your 'perl -V' output.

Do you have a Microsoft Compiler installed anywhere ?

I don't think these problems have anything to do with having tried to build Inline::CPP or Inline::C. It may be that you'll need to re-install the same version of ActivePerl over the top of this current installation - but I'll wait for your response to the above before recommending that. (It may be something quite simple.)

Cheers,
Rob

Reply via email to