talwyn has asked for the wisdom of the Perl Monks concerning the following question:
XS CODE
#include "EXTERN.h" #include "perl.h" #include "XSUB.h" #include <stdio.h> void hello (void) { printf("Hello World!"); } MODULE = Mytest PACKAGE = Mytest void hello()
Error Messages
C:\Documents and Settings\sswenson\My Documents\perlscripts\Mytest>Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cl -c -I. -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CO +NSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IM +PLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1 -DVERSION=\ +"0.01\" -DXS_VERSION=\"0.01\" "-IC:\Perl\lib\CORE" Mytest.c mytest.c c:\MSVC\INCLUDE\errno.h(29) : warning C4114: same type qualifier used +more than once c:\MSVC\INCLUDE\windows.h(130) : warning C4005: 'FALSE' : macro redefi +nition c:\MSVC\INCLUDE\windows.h(131) : warning C4005: 'TRUE' : macro redefin +ition c:\MSVC\INCLUDE\stdlib.h(108) : warning C4114: same type qualifier use +d more than once c:\MSVC\INCLUDE\stddef.h(44) : warning C4114: same type qualifier used + more than once C:/Perl/lib/CORE\win32.h(279) : error C2085: 'Perl_win32_init' : not i +n formal parameter list C:/Perl/lib/CORE\win32.h(280) : error C2061: syntax error : identifier + '__declspec' C:/Perl/lib/CORE\win32.h(281) : fatal error C1001: internal compiler e +rror (compiler file 'msc1.cpp', line 585) NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code + '0x2' Stop.
Perl Configuration
Environment
APPDATA=C:\Documents and Settings\sswenson\Application Data CommonProgramFiles=C:\Program Files\Common Files ComSpec=C:\WINDOWS\system32\cmd.exe INCLUDE=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\in +clude\;c:\MSVC\INCLUDE;c:\MSVC\ALT\INCLUDE;c:\MSVC\MFC\INCLUDE LIB=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\;c +:\MSVC\LIB;c:\MSVC\MFC\LIB LOGONSERVER=\\DEMESNE MAKEMSI_DIR=C:\Program Files\MakeMsi\ MAKEMSI_MSIVAL2_DIR=C:\Program Files\MSIVAL2 NUMBER_OF_PROCESSORS=1 OS=Windows_NT Path=C:\Perl56\bin\;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WIN +DOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Pane +l;C:\Progra m Files\MakeMsi\;C:\MSVC\BIN PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.4mm PPWIZARD_INCLUDE=C:\Program Files\MakeMsi\ PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel PROCESSOR_LEVEL=15 PROCESSOR_REVISION=0207 ProgramFiles=C:\Program Files PROMPT=$P$G REGINA_MACROS=C:\Program Files\MakeMsi\ SESSIONNAME=Console STAID=001 SystemDrive=C: SystemRoot=C:\WINDOWS TEMP=C:\DOCUME~1\sswenson\LOCALS~1\Temp TMP=C:\DOCUME~1\sswenson\LOCALS~1\Temp USERPROFILE=C:\Documents and Settings\sswenson VS71COMNTOOLS=C:\Program Files\Microsoft Visual Studio .NET 2003\Commo +n7\Tools\ windir=C:\WINDOWS
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need Help getting cl configured for making XS modules
by Aragorn (Curate) on Mar 20, 2004 at 18:27 UTC | |
by talwyn (Monk) on Mar 21, 2004 at 06:20 UTC |