Subject: | Doesn't compile with MSVC and perl5.8.0: API.xs(155) : error C2065: 'na' : undeclared identifier |
This is with a fresh perl5.8.0, compiled from source with MSVC:
Show quoted text
cpan> make Win32::API
CPAN: Storable loaded ok
Going to read \.cpan\Metadata
Database was generated on Tue, 29 Oct 2002 11:52:35 GMT
Running make for module Win32::API
Running make for A/AC/ACALPINI/Win32-API-0.20.zip
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for \.cpan\sources\authors\id\A\AC\ACALPINI\Win32-API-0.20.zip ok
Scanning cache \.cpan\build for sizes
Archive: /.cpan/sources/authors/id/A/AC/ACALPINI/Win32-API-0.20.zip
inflating: Win32-API-0.20/API.html
inflating: Win32-API-0.20/API.pm
inflating: Win32-API-0.20/API.xs
inflating: Win32-API-0.20/Makefile.PL
inflating: Win32-API-0.20/MANIFEST
inflating: Win32-API-0.20/README
inflating: Win32-API-0.20/README.txt
inflating: Win32-API-0.20/t/test.t
inflating: Win32-API-0.20/TYPEMAP
Removing previously used \.cpan\build\Win32-API-0.20
CPAN.pm: Going to build A/AC/ACALPINI/Win32-API-0.20.zip
Checking if your kit is complete...
Looks good
Writing Makefile for Win32::API
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
cp API.pm blib\lib\Win32\API.pm
C:\Perl\perl5.8.0\bin\perl.exe C:\perl\perl5.8.0\lib\ExtUtils/xsubpp -typemap C:\perl\perl5.8.0\lib\ExtUtils\typemap -typem
ap typemap API.xs > API.xsc && C:\Perl\perl5.8.0\bin\perl.exe -MExtUtils::Command -e mv API.xsc API.c
cl -c -nologo -Gf -W3 -MD -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_P
ERLIO -DPERL_MSVCRT_READFIX -MD -DNDEBUG -O1 -DVERSION=\"0.20\" -DXS_VERSION=\"0.20\" "-IC:\perl\perl5.8.0\lib\CORE" API.c
API.c
API.xs(155) : error C2065: 'na' : undeclared identifier
API.xs(237) : warning C4244: '=' : conversion from 'double ' to 'float ', possible loss of data
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
C:\util\nmake.EXE -- NOT OK
------------------------------------------------------------------
C:\Documents and Settings\rrohbeck\My Documents>perl -V
Summary of my perl5 (revision 5 version 8 subversion 0) configuration:
Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
usethreads=undef use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=undef usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cl', ccflags ='-nologo -Gf -W3 -MD -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
-DUSE_PERLIO -DPERL_MSVCRT_READFIX',
optimize='-MD -DNDEBUG -O1',
cppflags='-DWIN32'
ccversion='', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
alignbytes=8, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -release -libpath:"c:\perl\perl5.8.0\lib\CORE" -machine:x86'
libpth="C:\Program Files\Microsoft Visual Studio\VC98\bin\lib"
libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib
perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32
.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl58.lib
gnulibc_version='undef'
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release -libpath:"c:\perl\perl5.8.0\lib\CORE" -machine:x86'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
Built under MSWin32
Compiled at Oct 22 2002 09:02:35
@INC:
c:/Perl/perl5.8.0/lib
c:/Perl/perl5.8.0/site/lib
.
Show quoted textcpan>