I try to use it on Windows with ActiveState perl 5.6.1 build 630 and 
Microsoft Compiler (cl) version 12.00.8168... and it doesn't work :((

At 02:09 PM 8/12/2002 +0100, Piers Harding wrote:

>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.
> >
> >
> >
> >
> > Constantine Elster
> > Qualcomm Israel Ltd.
> > Phone +972 4 8506437


Constantine Elster
Qualcomm Israel Ltd.
Phone +972 4 8506437

Reply via email to