How to Install Inline:CPP module
How to Install Inline:CPP module
am 16.07.2005 09:49:12 von Sankaran
Hello
I am trying to install Inline:CPP module.
1. I downloaded Inline-CPP-0.25.tar.gz to my local folder and
extracted, as I did for Inline:C installation.
2. Then ran Perl Makefile.pl
3. Then nmake
4. Then nmake test, now I am getting the following error
------------------------------------------------------------ ------
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP- 0.25.tar\Inline-CPP-
0.25>Perl Makefile
Can't open perl script "Makefile": No such file or directory
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP- 0.25.tar\Inline-CPP-
0.25>Perl Makefile.pl
This will configure and build Inline::C++.
What default C++ compiler would you like to use? [cl -TP]
What default libraries would you like to include? [MSVCIRT.LIB]
Checking if your kit is complete...
Looks good
Writing Makefile for Inline::CPP::grammar
Writing Makefile for Inline::CPP
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP- 0.25.tar\Inline-CPP-
0.25>nmake
Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
mkdir blib
mkdir blib\lib
mkdir blib\lib\Inline
mkdir blib\arch
mkdir blib\arch\auto
mkdir blib\arch\auto\Inline
mkdir blib\arch\auto\Inline\CPP
mkdir blib\lib\auto
mkdir blib\lib\auto\Inline
mkdir blib\lib\auto\Inline\CPP
cp CPP.pm blib\lib\Inline\CPP.pm
cp lib/Inline/CPP.pod blib\lib\Inline\CPP.pod
mkdir ..\blib\lib\Inline\CPP
mkdir ..\blib\arch\auto\Inline\CPP\grammar
mkdir ..\blib\lib\auto\Inline\CPP\grammar
cp grammar.pm ..\blib\lib\Inline\CPP\grammar.pm
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP- 0.25.tar\Inline-CPP-
0.25>nmake test
Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
D:\Perl\bin\Perl.exe -Mblib -ID:\Perl\lib -ID:\Perl\lib -e "use
Test::Ha
rness qw(&runtests $verbose); $verbose=0; runtests @ARGV;" t\01basic.t
t\02prefi
x.t
Using
E:/Sankaran/Work/TP-TAImpacts-LM051049/InlineCPP/Inline-CPP- 0.25.tar/Inlin
e-CPP-0.25/blib
t\01basic...........
Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
mkdir blib
mkdir blib\lib
mkdir blib\arch
mkdir blib\arch\auto
mkdir blib\arch\auto\_01basic_t_5cd2
mkdir blib\lib\auto
mkdir blib\lib\auto\_01basic_t_5cd2
D:\Perl\bin\Perl.exe -ID:\Perl\lib -ID:\Perl\lib
D:\Perl\lib\ExtUtils/xs
ubpp -typemap D:\Perl\lib\ExtUtils\typemap -typemap
E:\Sankaran\Work\TP-TAImpac
ts-LM051049\InlineCPP\Inline-CPP-0.25.tar\Inline-CPP-0.25\_I nline\build\_01basic
_t_5cd2\CPP.map _01basic_t_5cd2.xs > _01basic_t_5cd2.xsc &&
D:\Perl\bin\Perl.exe
-ID:\Perl\lib -ID:\Perl\lib -MExtUtils::Command -e mv
_01basic_t_5cd2.xsc _01ba
sic_t_5cd2.c
cl -c
-IE:/Sankaran/Work/TP-TAImpacts-LM051049/InlineCPP/Inline-CP P-0.25
..tar/Inline-CPP-0.25/t -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
-DHAVE_DE
S_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
-DPERL_MSVCRT_READFIX -O1 -
MD -DNDEBUG -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\"
-ID:\Perl\lib\CORE
_01basic_t_5cd2.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for
80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
_01basic_t_5cd2.c
_01basic_t_5cd2.xs(4) : error C2059: syntax error : 'string'
_01basic_t_5cd2.xs(16) : error C2061: syntax error : identifier
'Soldier'
_01basic_t_5cd2.xs(16) : error C2059: syntax error : ';'
_01basic_t_5cd2.xs(16) : error C2449: found '{' at file scope (missing
function
header?)
_01basic_t_5cd2.xs(28) : error C2059: syntax error : '}'
_01basic_t_5cd2.xs(36) : error C2143: syntax error : missing '{' before
':'
_01basic_t_5cd2.xs(36) : error C2059: syntax error : ':'
_01basic_t_5cd2.xs(40) : error C2143: syntax error : missing '{' before
':'
_01basic_t_5cd2.xs(40) : error C2059: syntax error : ':'
_01basic_t_5cd2.xs(44) : error C2143: syntax error : missing '{' before
':'
_01basic_t_5cd2.xs(44) : error C2059: syntax error : ':'
_01basic_t_5cd2.c(59) : error C2143: syntax error : missing ')' before
'*'
_01basic_t_5cd2.c(59) : error C2143: syntax error : missing '{' before
'*'
_01basic_t_5cd2.c(59) : error C2143: syntax error : missing ';' before
'*'
_01basic_t_5cd2.c(59) : error C2059: syntax error : ')'
_01basic_t_5cd2.c(60) : error C2054: expected '(' to follow 'cv'
_01basic_t_5cd2.c(79) : error C2143: syntax error : missing ')' before
'*'
_01basic_t_5cd2.c(79) : error C2143: syntax error : missing '{' before
'*'
_01basic_t_5cd2.c(79) : error C2143: syntax error : missing ';' before
'*'
_01basic_t_5cd2.c(79) : error C2059: syntax error : ')'
_01basic_t_5cd2.c(80) : error C2054: expected '(' to follow 'cv'
_01basic_t_5cd2.c(103) : error C2143: syntax error : missing ')' before
'*'
_01basic_t_5cd2.c(103) : error C2143: syntax error : missing '{' before
'*'
_01basic_t_5cd2.c(103) : error C2143: syntax error : missing ';' before
'*'
_01basic_t_5cd2.c(103) : error C2059: syntax error : ')'
_01basic_t_5cd2.c(104) : error C2054: expected '(' to follow 'cv'
_01basic_t_5cd2.c(127) : error C2143: syntax error : missing ')' before
'*'
_01basic_t_5cd2.c(127) : error C2143: syntax error : missing '{' before
'*'
_01basic_t_5cd2.c(127) : error C2143: syntax error : missing ';' before
'*'
_01basic_t_5cd2.c(127) : error C2059: syntax error : ')'
_01basic_t_5cd2.c(128) : error C2054: expected '(' to follow 'cv'
_01basic_t_5cd2.c(151) : error C2143: syntax error : missing ')' before
'*'
_01basic_t_5cd2.c(151) : error C2143: syntax error : missing '{' before
'*'
_01basic_t_5cd2.c(151) : error C2143: syntax error : missing ';' before
'*'
_01basic_t_5cd2.c(151) : error C2059: syntax error : ')'
_01basic_t_5cd2.c(152) : error C2054: expected '(' to follow 'cv'
_01basic_t_5cd2.c(175) : error C2143: syntax error : missing ')' before
'*'
_01basic_t_5cd2.c(175) : error C2143: syntax error : missing '{' before
'*'
_01basic_t_5cd2.c(175) : error C2143: syntax error : missing ';' before
'*'
_01basic_t_5cd2.c(175) : error C2059: syntax error : ')'
_01basic_t_5cd2.c(176) : error C2054: expected '(' to follow 'cv'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
A problem was encountered while attempting to compile and install your
Inline
CPP code. The command that failed was:
nmake > out.make 2>&1
The build directory was:
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP- 0.25.tar\Inline-CPP-
0.25\_Inline\build\_01basic_t_5cd2
To debug the problem, cd to the build directory, and inspect the output
files.
at t\01basic.t line 30
BEGIN failed--compilation aborted at t\01basic.t line 64.
t\01basic...........dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-10
Failed 10/10 tests, 0.00% okay
t\02prefix..........
Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
mkdir blib
mkdir blib\lib
mkdir blib\arch
mkdir blib\arch\auto
mkdir blib\arch\auto\_02prefix_t_4ede
mkdir blib\lib\auto
mkdir blib\lib\auto\_02prefix_t_4ede
D:\Perl\bin\Perl.exe -ID:\Perl\lib -ID:\Perl\lib
D:\Perl\lib\ExtUtils/xs
ubpp -typemap D:\Perl\lib\ExtUtils\typemap -typemap
E:\Sankaran\Work\TP-TAImpac
ts-LM051049\InlineCPP\Inline-CPP-0.25.tar\Inline-CPP-0.25\_I nline\build\_02prefi
x_t_4ede\CPP.map _02prefix_t_4ede.xs > _02prefix_t_4ede.xsc &&
D:\Perl\bin\Perl.
exe -ID:\Perl\lib -ID:\Perl\lib -MExtUtils::Command -e mv
_02prefix_t_4ede.xsc _
02prefix_t_4ede.c
cl -c
-IE:/Sankaran/Work/TP-TAImpacts-LM051049/InlineCPP/Inline-CP P-0.25
..tar/Inline-CPP-0.25/t -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
-DHAVE_DE
S_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
-DPERL_MSVCRT_READFIX -O1 -
MD -DNDEBUG -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\"
-ID:\Perl\lib\CORE
_02prefix_t_4ede.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for
80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
_02prefix_t_4ede.c
_02prefix_t_4ede.xs(4) : error C2059: syntax error : 'string'
_02prefix_t_4ede.xs(17) : error C2032: '' : function cannot be
member o
f struct 'Foo'
_02prefix_t_4ede.xs(17) : error C2143: syntax error : missing ';'
before '{'
_02prefix_t_4ede.xs(17) : error C2059: syntax error : '{'
_02prefix_t_4ede.xs(18) : error C2059: syntax error : '}'
_02prefix_t_4ede.c(33) : error C2143: syntax error : missing ')' before
'*'
_02prefix_t_4ede.c(33) : error C2143: syntax error : missing '{' before
'*'
_02prefix_t_4ede.c(33) : error C2143: syntax error : missing ';' before
'*'
_02prefix_t_4ede.c(33) : error C2059: syntax error : ')'
_02prefix_t_4ede.c(34) : error C2054: expected '(' to follow 'cv'
_02prefix_t_4ede.c(57) : error C2143: syntax error : missing ')' before
'*'
_02prefix_t_4ede.c(57) : error C2143: syntax error : missing '{' before
'*'
_02prefix_t_4ede.c(57) : error C2143: syntax error : missing ';' before
'*'
_02prefix_t_4ede.c(57) : error C2059: syntax error : ')'
_02prefix_t_4ede.c(58) : error C2054: expected '(' to follow 'cv'
_02prefix_t_4ede.c(74) : error C2143: syntax error : missing ')' before
'*'
_02prefix_t_4ede.c(74) : error C2143: syntax error : missing '{' before
'*'
_02prefix_t_4ede.c(74) : error C2143: syntax error : missing ';' before
'*'
_02prefix_t_4ede.c(74) : error C2059: syntax error : ')'
_02prefix_t_4ede.c(75) : error C2054: expected '(' to follow 'cv'
_02prefix_t_4ede.c(95) : error C2143: syntax error : missing ')' before
'*'
_02prefix_t_4ede.c(95) : error C2143: syntax error : missing '{' before
'*'
_02prefix_t_4ede.c(95) : error C2143: syntax error : missing ';' before
'*'
_02prefix_t_4ede.c(95) : error C2059: syntax error : ')'
_02prefix_t_4ede.c(96) : error C2054: expected '(' to follow 'cv'
_02prefix_t_4ede.c(114) : error C2143: syntax error : missing ')'
before '*'
_02prefix_t_4ede.c(114) : error C2143: syntax error : missing '{'
before '*'
_02prefix_t_4ede.c(114) : error C2143: syntax error : missing ';'
before '*'
_02prefix_t_4ede.c(114) : error C2059: syntax error : ')'
_02prefix_t_4ede.c(115) : error C2054: expected '(' to follow 'cv'
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
A problem was encountered while attempting to compile and install your
Inline
CPP code. The command that failed was:
nmake > out.make 2>&1
The build directory was:
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP- 0.25.tar\Inline-CPP-
0.25\_Inline\build\_02prefix_t_4ede
To debug the problem, cd to the build directory, and inspect the output
files.
at t\02prefix.t line 0
INIT failed--call queue aborted.
t\02prefix..........dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-4
Failed 4/4 tests, 0.00% okay
Failed Test Status Wstat Total Fail Failed List of failed
------------------------------------------------------------ -------------------
t\01basic.t 2 512 10 10 100.00% 1-10
t\02prefix.t 2 512 4 4 100.00% 1-4
Failed 2/2 test scripts, 0.00% okay. 14/14 subtests failed, 0.00% okay.
NMAKE : fatal error U1077: 'D:\Perl\bin\Perl.exe' : return code '0x2'
Stop.
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP- 0.25.tar\Inline-CPP-
0.25>nmake install
Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
Skipping D:\Perl\site\lib\Inline\CPP.pm (unchanged)
Skipping D:\Perl\site\lib\Inline\CPP.pod (unchanged)
Skipping D:\Perl\site\lib\Inline\CPP\grammar.pm (unchanged)
Writing D:\Perl\site\lib\auto\Inline\CPP\.packlist
Appending installation info to D:\Perl\lib/perllocal.pod
------------------------------------------------------------ ----
Do anybody know any pre-requisites for installing Inline:CPP? like we
have to install TextBalanced and ParseRecDecsent before installing
Inline:C?
Kindly help.
Regards,
Sankaran
Re: How to Install Inline:CPP module
am 16.07.2005 11:21:54 von Sisyphus
"Sankaran" wrote in message
news:1121500152.833191.207770@z14g2000cwz.googlegroups.com.. .
> Hello
> I am trying to install Inline:CPP module.
>
> 1. I downloaded Inline-CPP-0.25.tar.gz to my local folder and
> extracted, as I did for Inline:C installation.
>
> 2. Then ran Perl Makefile.pl
> 3. Then nmake
> 4. Then nmake test, now I am getting the following error
> ------------------------------------------------------------ ------
>
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP- 0.25.tar\Inline-
CPP-
> 0.25>Perl Makefile
> Can't open perl script "Makefile": No such file or directory
>
>
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP- 0.25.tar\Inline-
CPP-
> 0.25>Perl Makefile.pl
> This will configure and build Inline::C++.
> What default C++ compiler would you like to use? [cl -TP]
> What default libraries would you like to include? [MSVCIRT.LIB]
> Checking if your kit is complete...
> Looks good
> Writing Makefile for Inline::CPP::grammar
> Writing Makefile for Inline::CPP
>
>
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP- 0.25.tar\Inline-
CPP-
> 0.25>nmake
>
> Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
>
> mkdir blib
> mkdir blib\lib
> mkdir blib\lib\Inline
> mkdir blib\arch
> mkdir blib\arch\auto
> mkdir blib\arch\auto\Inline
> mkdir blib\arch\auto\Inline\CPP
> mkdir blib\lib\auto
> mkdir blib\lib\auto\Inline
> mkdir blib\lib\auto\Inline\CPP
> cp CPP.pm blib\lib\Inline\CPP.pm
> cp lib/Inline/CPP.pod blib\lib\Inline\CPP.pod
> mkdir ..\blib\lib\Inline\CPP
> mkdir ..\blib\arch\auto\Inline\CPP\grammar
> mkdir ..\blib\lib\auto\Inline\CPP\grammar
> cp grammar.pm ..\blib\lib\Inline\CPP\grammar.pm
>
>
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP- 0.25.tar\Inline-
CPP-
> 0.25>nmake test
>
> Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
>
> D:\Perl\bin\Perl.exe -Mblib -ID:\Perl\lib -ID:\Perl\lib -e "use
> Test::Ha
> rness qw(&runtests $verbose); $verbose=0; runtests @ARGV;" t\01basic.t
> t\02prefi
> x.t
> Using
> E:/Sankaran/Work/TP-TAImpacts-LM051049/InlineCPP/Inline-CPP- 0.25.tar/Inlin
> e-CPP-0.25/blib
> t\01basic...........
> Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
>
> mkdir blib
> mkdir blib\lib
> mkdir blib\arch
> mkdir blib\arch\auto
> mkdir blib\arch\auto\_01basic_t_5cd2
> mkdir blib\lib\auto
> mkdir blib\lib\auto\_01basic_t_5cd2
> D:\Perl\bin\Perl.exe -ID:\Perl\lib -ID:\Perl\lib
> D:\Perl\lib\ExtUtils/xs
> ubpp -typemap D:\Perl\lib\ExtUtils\typemap -typemap
> E:\Sankaran\Work\TP-TAImpac
>
ts-LM051049\InlineCPP\Inline-CPP-0.25.tar\Inline-CPP-0.25\_I nline\build\_01b
asic
> _t_5cd2\CPP.map _01basic_t_5cd2.xs > _01basic_t_5cd2.xsc &&
> D:\Perl\bin\Perl.exe
> -ID:\Perl\lib -ID:\Perl\lib -MExtUtils::Command -e mv
> _01basic_t_5cd2.xsc _01ba
> sic_t_5cd2.c
> cl -c
> -IE:/Sankaran/Work/TP-TAImpacts-LM051049/InlineCPP/Inline-CP P-0.25
> .tar/Inline-CPP-0.25/t -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
> -DHAVE_DE
> S_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
> -DPERL_MSVCRT_READFIX -O1 -
> MD -DNDEBUG -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\"
> -ID:\Perl\lib\CORE
> _01basic_t_5cd2.c
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for
> 80x86
> Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
>
> _01basic_t_5cd2.c
> _01basic_t_5cd2.xs(4) : error C2059: syntax error : 'string'
> _01basic_t_5cd2.xs(16) : error C2061: syntax error : identifier
> 'Soldier'
> _01basic_t_5cd2.xs(16) : error C2059: syntax error : ';'
> _01basic_t_5cd2.xs(16) : error C2449: found '{' at file scope (missing
> function
> header?)
> _01basic_t_5cd2.xs(28) : error C2059: syntax error : '}'
> _01basic_t_5cd2.xs(36) : error C2143: syntax error : missing '{' before
> ':'
> _01basic_t_5cd2.xs(36) : error C2059: syntax error : ':'
> _01basic_t_5cd2.xs(40) : error C2143: syntax error : missing '{' before
> ':'
> _01basic_t_5cd2.xs(40) : error C2059: syntax error : ':'
> _01basic_t_5cd2.xs(44) : error C2143: syntax error : missing '{' before
> ':'
> _01basic_t_5cd2.xs(44) : error C2059: syntax error : ':'
> _01basic_t_5cd2.c(59) : error C2143: syntax error : missing ')' before
> '*'
> _01basic_t_5cd2.c(59) : error C2143: syntax error : missing '{' before
> '*'
> _01basic_t_5cd2.c(59) : error C2143: syntax error : missing ';' before
> '*'
> _01basic_t_5cd2.c(59) : error C2059: syntax error : ')'
> _01basic_t_5cd2.c(60) : error C2054: expected '(' to follow 'cv'
> _01basic_t_5cd2.c(79) : error C2143: syntax error : missing ')' before
> '*'
> _01basic_t_5cd2.c(79) : error C2143: syntax error : missing '{' before
> '*'
> _01basic_t_5cd2.c(79) : error C2143: syntax error : missing ';' before
> '*'
> _01basic_t_5cd2.c(79) : error C2059: syntax error : ')'
> _01basic_t_5cd2.c(80) : error C2054: expected '(' to follow 'cv'
> _01basic_t_5cd2.c(103) : error C2143: syntax error : missing ')' before
> '*'
> _01basic_t_5cd2.c(103) : error C2143: syntax error : missing '{' before
> '*'
> _01basic_t_5cd2.c(103) : error C2143: syntax error : missing ';' before
> '*'
> _01basic_t_5cd2.c(103) : error C2059: syntax error : ')'
> _01basic_t_5cd2.c(104) : error C2054: expected '(' to follow 'cv'
> _01basic_t_5cd2.c(127) : error C2143: syntax error : missing ')' before
> '*'
> _01basic_t_5cd2.c(127) : error C2143: syntax error : missing '{' before
> '*'
> _01basic_t_5cd2.c(127) : error C2143: syntax error : missing ';' before
> '*'
> _01basic_t_5cd2.c(127) : error C2059: syntax error : ')'
> _01basic_t_5cd2.c(128) : error C2054: expected '(' to follow 'cv'
> _01basic_t_5cd2.c(151) : error C2143: syntax error : missing ')' before
> '*'
> _01basic_t_5cd2.c(151) : error C2143: syntax error : missing '{' before
> '*'
> _01basic_t_5cd2.c(151) : error C2143: syntax error : missing ';' before
> '*'
> _01basic_t_5cd2.c(151) : error C2059: syntax error : ')'
> _01basic_t_5cd2.c(152) : error C2054: expected '(' to follow 'cv'
> _01basic_t_5cd2.c(175) : error C2143: syntax error : missing ')' before
> '*'
> _01basic_t_5cd2.c(175) : error C2143: syntax error : missing '{' before
> '*'
> _01basic_t_5cd2.c(175) : error C2143: syntax error : missing ';' before
> '*'
> _01basic_t_5cd2.c(175) : error C2059: syntax error : ')'
> _01basic_t_5cd2.c(176) : error C2054: expected '(' to follow 'cv'
> NMAKE : fatal error U1077: 'cl' : return code '0x2'
> Stop.
>
> A problem was encountered while attempting to compile and install your
> Inline
> CPP code. The command that failed was:
> nmake > out.make 2>&1
>
> The build directory was:
>
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP- 0.25.tar\Inline-
CPP-
> 0.25\_Inline\build\_01basic_t_5cd2
>
> To debug the problem, cd to the build directory, and inspect the output
> files.
>
> at t\01basic.t line 30
> BEGIN failed--compilation aborted at t\01basic.t line 64.
> t\01basic...........dubious
> Test returned status 2 (wstat 512, 0x200)
> DIED. FAILED tests 1-10
> Failed 10/10 tests, 0.00% okay
> t\02prefix..........
> Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
>
> mkdir blib
> mkdir blib\lib
> mkdir blib\arch
> mkdir blib\arch\auto
> mkdir blib\arch\auto\_02prefix_t_4ede
> mkdir blib\lib\auto
> mkdir blib\lib\auto\_02prefix_t_4ede
> D:\Perl\bin\Perl.exe -ID:\Perl\lib -ID:\Perl\lib
> D:\Perl\lib\ExtUtils/xs
> ubpp -typemap D:\Perl\lib\ExtUtils\typemap -typemap
> E:\Sankaran\Work\TP-TAImpac
>
ts-LM051049\InlineCPP\Inline-CPP-0.25.tar\Inline-CPP-0.25\_I nline\build\_02p
refi
> x_t_4ede\CPP.map _02prefix_t_4ede.xs > _02prefix_t_4ede.xsc &&
> D:\Perl\bin\Perl.
> exe -ID:\Perl\lib -ID:\Perl\lib -MExtUtils::Command -e mv
> _02prefix_t_4ede.xsc _
> 02prefix_t_4ede.c
> cl -c
> -IE:/Sankaran/Work/TP-TAImpacts-LM051049/InlineCPP/Inline-CP P-0.25
> .tar/Inline-CPP-0.25/t -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
> -DHAVE_DE
> S_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
> -DPERL_MSVCRT_READFIX -O1 -
> MD -DNDEBUG -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\"
> -ID:\Perl\lib\CORE
> _02prefix_t_4ede.c
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for
> 80x86
> Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
>
> _02prefix_t_4ede.c
> _02prefix_t_4ede.xs(4) : error C2059: syntax error : 'string'
> _02prefix_t_4ede.xs(17) : error C2032: '' : function cannot be
> member o
> f struct 'Foo'
> _02prefix_t_4ede.xs(17) : error C2143: syntax error : missing ';'
> before '{'
> _02prefix_t_4ede.xs(17) : error C2059: syntax error : '{'
> _02prefix_t_4ede.xs(18) : error C2059: syntax error : '}'
> _02prefix_t_4ede.c(33) : error C2143: syntax error : missing ')' before
> '*'
> _02prefix_t_4ede.c(33) : error C2143: syntax error : missing '{' before
> '*'
> _02prefix_t_4ede.c(33) : error C2143: syntax error : missing ';' before
> '*'
> _02prefix_t_4ede.c(33) : error C2059: syntax error : ')'
> _02prefix_t_4ede.c(34) : error C2054: expected '(' to follow 'cv'
> _02prefix_t_4ede.c(57) : error C2143: syntax error : missing ')' before
> '*'
> _02prefix_t_4ede.c(57) : error C2143: syntax error : missing '{' before
> '*'
> _02prefix_t_4ede.c(57) : error C2143: syntax error : missing ';' before
> '*'
> _02prefix_t_4ede.c(57) : error C2059: syntax error : ')'
> _02prefix_t_4ede.c(58) : error C2054: expected '(' to follow 'cv'
> _02prefix_t_4ede.c(74) : error C2143: syntax error : missing ')' before
> '*'
> _02prefix_t_4ede.c(74) : error C2143: syntax error : missing '{' before
> '*'
> _02prefix_t_4ede.c(74) : error C2143: syntax error : missing ';' before
> '*'
> _02prefix_t_4ede.c(74) : error C2059: syntax error : ')'
> _02prefix_t_4ede.c(75) : error C2054: expected '(' to follow 'cv'
> _02prefix_t_4ede.c(95) : error C2143: syntax error : missing ')' before
> '*'
> _02prefix_t_4ede.c(95) : error C2143: syntax error : missing '{' before
> '*'
> _02prefix_t_4ede.c(95) : error C2143: syntax error : missing ';' before
> '*'
> _02prefix_t_4ede.c(95) : error C2059: syntax error : ')'
> _02prefix_t_4ede.c(96) : error C2054: expected '(' to follow 'cv'
> _02prefix_t_4ede.c(114) : error C2143: syntax error : missing ')'
> before '*'
> _02prefix_t_4ede.c(114) : error C2143: syntax error : missing '{'
> before '*'
> _02prefix_t_4ede.c(114) : error C2143: syntax error : missing ';'
> before '*'
> _02prefix_t_4ede.c(114) : error C2059: syntax error : ')'
> _02prefix_t_4ede.c(115) : error C2054: expected '(' to follow 'cv'
> NMAKE : fatal error U1077: 'cl' : return code '0x2'
> Stop.
>
> A problem was encountered while attempting to compile and install your
> Inline
> CPP code. The command that failed was:
> nmake > out.make 2>&1
>
> The build directory was:
>
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP- 0.25.tar\Inline-
CPP-
> 0.25\_Inline\build\_02prefix_t_4ede
>
> To debug the problem, cd to the build directory, and inspect the output
> files.
>
> at t\02prefix.t line 0
> INIT failed--call queue aborted.
> t\02prefix..........dubious
> Test returned status 2 (wstat 512, 0x200)
> DIED. FAILED tests 1-4
> Failed 4/4 tests, 0.00% okay
> Failed Test Status Wstat Total Fail Failed List of failed
> ------------------------------------------------------------ --------------
-----
> t\01basic.t 2 512 10 10 100.00% 1-10
> t\02prefix.t 2 512 4 4 100.00% 1-4
> Failed 2/2 test scripts, 0.00% okay. 14/14 subtests failed, 0.00% okay.
> NMAKE : fatal error U1077: 'D:\Perl\bin\Perl.exe' : return code '0x2'
> Stop.
>
>
E:\Sankaran\Work\TP-TAImpacts-LM051049\InlineCPP\Inline-CPP- 0.25.tar\Inline-
CPP-
> 0.25>nmake install
>
> Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
> Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
>
> Skipping D:\Perl\site\lib\Inline\CPP.pm (unchanged)
> Skipping D:\Perl\site\lib\Inline\CPP.pod (unchanged)
> Skipping D:\Perl\site\lib\Inline\CPP\grammar.pm (unchanged)
> Writing D:\Perl\site\lib\auto\Inline\CPP\.packlist
> Appending installation info to D:\Perl\lib/perllocal.pod
> ------------------------------------------------------------ ----
>
> Do anybody know any pre-requisites for installing Inline:CPP? like we
> have to install TextBalanced and ParseRecDecsent before installing
> Inline:C?
>
You're not missing anything. See the 2 messages (and 2 replies) at:
http://www.mail-archive.com/inline@perl.org/msg01336.html
Does that help at all ? (I'm not sure that it will.)
In any case, it's worth adding #include to CPP.pm as mentioned
there.
Cheers,
Rob
Re: How to Install Inline:CPP module
am 19.07.2005 06:07:16 von Sankaran
Hello,
I am not able to see the site you have mentioned in your reply.
regards,
Sankaran
Re: How to Install Inline:CPP module
am 19.07.2005 09:17:13 von Sisyphus
"Sankaran" wrote in message
news:1121746036.295576.199100@g14g2000cwa.googlegroups.com.. .
> Hello,
> I am not able to see the site you have mentioned in your reply.
>
> regards,
> Sankaran
>
Don't know why that would be .... but here it is:
##### start #####
Re: Inline CPP problem
Patrick LeBoutillier
Mon, 12 Aug 2002 06:52:02 -0700
I'm getting a different error, which I can solve by putting
#include
at line 44 of CPP.pm (first thing in the .c file). I don't know if
this will solve your problem as well...
-----8<-----
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
mkdir blib
mkdir blib\lib
mkdir blib\arch
mkdir blib\arch\auto
mkdir blib\arch\auto\test_pl_8b0e
mkdir blib\lib\auto
mkdir blib\lib\auto\test_pl_8b0e
D:\Perl\bin\Perl.exe -ID:\Perl\lib -ID:\Perl\lib
D:\Perl\lib\ExtUtils/xsubpp -typemap D:\Perl\lib/ExtUtils/typemap -typemap
D:/Perl/modules/Inline-CPP-0.24/_Inline/build/test_pl_8b0e/C PP.map
test_pl_8b0e.xs > test_pl_8b0e.xsc &&
D:\Perl\bin\Perl.exe -ID:\Perl\lib -ID:\Perl\lib -MExtUtils::Command -e mv
test_pl_8b0e.xsc test_pl_8b0e.c
cl -TP -c -ID:/Perl/modules/Inline-CPP-0.24 -O1 -MD -DNDEBUG -DWIN32 -D_CONS
OLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SY
S -DPERL_MSVCRT_READFIX -O1 -MD -DNDEBUG -DVERSION=\"0.00\" -DXS_VERSI
ON=\"0.00\" -ID:\Perl\lib\CORE test_pl_8b0e.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
test_pl_8b0e.c
D:\Microsoft Visual Studio\VC98\include\math.h(514) : error C2894: templates
cannot be declared to have 'C' linkage
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
-----8<-----
Patrick
----- Original Message -----
From: "Piers Harding" <[EMAIL PROTECTED]>
To: "Constantine Elster" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, August 12, 2002 9:09 AM
Subject: Re: Inline CPP problem
>
> For what its worth - this works fine as is under Linux (RH 7.3). The
> error that you are getting looks vaguely familiar of a compiler choice
> error - are you sure that you are invoking a C++ compiler and not a C
> one?
>
> Cheers.
>
> On Mon, Aug 12, 2002 at 02:55:35PM +0200, Constantine Elster wrote:
> > Hi.
> >
> > I'm trying to use Inline CPP ver 0.24 and have a very strange problem:
> > I take the examples from the aspn.activestate.com and they do not
compile.
> >
> > For example the file is:
> > --------------------------------------------------------
> > use Inline CPP => <<'END';
> > class JAxH {
> > public:
> > JAxH(char *x);
> > SV* data();
> > private:
> > SV *dat;
> > };
> >
> > JAxH::JAxH(char *x) { dat = newSVpvf("Just Another %s Hacker", x); }
> > SV* JAxH::data() { return dat; }
> >
> > END
> > print JAxH->new('Inline')->data(), "\n";
> > --------------------------------------------------------
> >
> > but the example doesn't compile. The out.make is:
> >
> > Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
> > Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
> >
> > C:\Perl\bin\perl.exe -IC:\Perl\lib -IC:\Perl\lib
> > C:\Perl\lib\ExtUtils/xsubpp -typemap
C:\Perl\lib/ExtUtils/typemap -typemap
> > Z:/my_dir/Tests/_Inline/build/inline_test_pl_6483/CPP.map
> > inline_test_pl_6483.xs > inline_test_pl_6483.xsc && C:\Perl\bin\perl.exe
> > -IC:\Perl\lib -IC:\Perl\lib -MExtUtils::Command -e mv
> > inline_test_pl_6483.xsc inline_test_pl_6483.c
> > cl -c -IZ:/my_dir/Tests -nologo -O1 -MD -DNDEBUG -DWIN32
> > -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT
> > -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX -O1 -MD
>
-DNDEBUG -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" -IC:\Perl\lib\CORE
> > inline_test_pl_6483.c
> > inline_test_pl_6483.c
> > inline_test_pl_6483.xs(4) : error C2059: syntax error : 'string'
> > inline_test_pl_6483.xs(16) : error C2061: syntax error : identifier
'JAxH'
> > inline_test_pl_6483.xs(16) : error C2059: syntax error : ';'
> > inline_test_pl_6483.xs(16) : error C2449: found '{' at file scope
(missing
> > function header?)
> > inline_test_pl_6483.xs(23) : error C2059: syntax error : '}'
> > inline_test_pl_6483.xs(26) : error C2143: syntax error : missing '{'
before '*'
> > inline_test_pl_6483.xs(26) : error C2143: syntax error : missing '{'
before ':'
> > inline_test_pl_6483.xs(26) : error C2059: syntax error : ':'
> > inline_test_pl_6483.c(39) : error C2143: syntax error : missing ')'
before '*'
> > inline_test_pl_6483.c(39) : error C2143: syntax error : missing '{'
before '*'
> > inline_test_pl_6483.c(39) : error C2143: syntax error : missing ';'
before '*'
> >
> > and more.......
> >
> >
> > PLEASE HELP!!
> >
> > Thanks.
> > Constantine.
##### finish ######
You'll see that the post from Constantine reports errors similar to yours.
The suggestion (from Piers) is that somehow a C compiler (not C++ compiler)
is being invoked. Seems a reasonable suggestion - though I don't know what
the fix is, as I can't reproduce the error with either MSVC++ 6.0 or MSVC++
7.0. Did you accept the default value of 'cl -TP' as your compiler ? (Looks
like you did.)
Patrick's amendment fixes a different error. It's the error I *expected* you
to get with MSVC++ 6.0. It doesn't affect MSVC++ 7.0 (or later , afaik). Try
it anyway.
Cheers,
Rob