[Templates] Installing Tempalte-Toolkit 2.15 under Windows
Anatoly I. Zakharchenko
zakhar@irc.uintei.kiev.ua
Mon, 29 May 2006 14:07:22 +0300
This is a multi-part message in MIME format.
------=_NextPart_000_0009_01C68329.34724680
Content-Type: text/plain;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
Hi,
I'm trying to install the Template-Toolkit 2.15 in Win2000,=20
but I have a problem in the compiling phase.
I edited Stash.xs in the installation folder, inserting additional macro =
definitions as follows:
#ifdef WIN32
#define snprintf _snprintf
#endif
However, i see the following error message:
D:\Template-Toolkit-2.15>nmake
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
nmake -f Makefile all -nologo
cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE =
-DNO_ST
RICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE =
-DPERL_IMPLICIT_CONTEX
T -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi =
-DNDEBUG -O1
-DVERSION=3D\"2.15\" -DXS_VERSION=3D\"2.15\" "-ID:\Perl\lib\CORE" =
Stash.c
Stash.c
Stash.xs(57) : error C2010: '.' : unexpected in macro formal parameter =
list
Stash.xs(57) : error C2010: '.' : unexpected in macro formal parameter =
list
Stash.xs(57) : error C2010: '.' : unexpected in macro formal parameter =
list
Stash.xs(57) : error C2010: ')' : unexpected in macro formal parameter =
list
Stash.xs(203) : warning C4002: too many actual parameters for macro =
'debug'
Stash.xs(474) : warning C4002: too many actual parameters for macro =
'debug'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"d:\Program Files\Microsoft Visual Studio =
.NET 2003\
VC7\BIN\nmake.exe"' : return code '0x2'
Stop.
D:\Template-Toolkit-2.15>
Here is the problem in 'debug' macro definition for VC7.=20
Thanks!
Anatoly Zakharchenko,
---------------------------------
UISTEI
------=_NextPart_000_0009_01C68329.34724680
Content-Type: text/html;
charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dkoi8-r">
<META content=3D"MSHTML 6.00.2800.1543" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial>Hi,<BR><BR>I'm trying to install the =
Template-Toolkit 2.15=20
in Win2000, <BR>but I have a problem in the compiling =
phase.<BR></FONT></DIV>
<DIV><FONT face=3DArial>I edited Stash.xs in the installation folder, =
inserting=20
additional macro definitions as follows:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>#ifdef WIN32<BR>#define snprintf=20
_snprintf<BR>#endif<BR></FONT><FONT face=3DArial size=3D2></FONT></DIV>
<DIV><FONT face=3DArial>However, i see the following error=20
message:<BR></DIV></FONT>
<DIV><FONT face=3DArial><FONT=20
size=3D2>D:\Template-Toolkit-2.15>nmake</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial><FONT size=3D2>Microsoft (R) Program Maintenance =
Utility=20
Version 7.10.3077<BR>Copyright (C) Microsoft Corporation. All =
rights=20
reserved.</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial><FONT =
size=3D2> =20
nmake -f Makefile all =
-nologo<BR> cl=20
-c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 =
-D_CONSOLE=20
-DNO_ST<BR>RICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE=20
-DPERL_IMPLICIT_CONTEX<BR>T -DPERL_IMPLICIT_SYS -DUSE_PERLIO=20
-DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG =
-O1<BR> -DVERSION=3D\"2.15\" =20
-DXS_VERSION=3D\"2.15\" "-ID:\Perl\lib\CORE" =20
Stash.c<BR>Stash.c<BR>Stash.xs(57) : error C2010: '.' : unexpected in =
macro=20
formal parameter list<BR>Stash.xs(57) : error C2010: '.' : unexpected in =
macro=20
formal parameter list<BR>Stash.xs(57) : error C2010: '.' : unexpected in =
macro=20
formal parameter list<BR>Stash.xs(57) : error C2010: ')' : unexpected in =
macro=20
formal parameter list<BR>Stash.xs(203) : warning C4002: too many actual=20
parameters for macro 'debug'<BR>Stash.xs(474) : warning C4002: too many =
actual=20
parameters for macro 'debug'<BR>NMAKE : fatal error U1077: 'cl' : return =
code=20
'0x2'<BR>Stop.<BR>NMAKE : fatal error U1077: '"d:\Program =
Files\Microsoft Visual=20
Studio .NET 2003\<BR>VC7\BIN\nmake.exe"' : return code=20
'0x2'<BR>Stop.</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial><FONT=20
size=3D2>D:\Template-Toolkit-2.15></FONT><BR></FONT></DIV>
<DIV><FONT face=3DArial>Here is the problem in 'debug' macro definition =
for VC7.=20
</FONT></DIV>
<DIV><FONT face=3DArial></FONT> </DIV>
<DIV><FONT face=3DArial><FONT size=3D2>Thanks!</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2></FONT></FONT> </DIV>
<DIV><FONT face=3DArial><FONT size=3D2>Anatoly =
Zakharchenko,</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT=20
size=3D2>---------------------------------</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT =
size=3D2>UISTEI</FONT></DIV></FONT></BODY></HTML>
------=_NextPart_000_0009_01C68329.34724680--