Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Perl: porters

C++ fail with KeywordRPN

 

 

Perl porters RSS feed   Index | Next | Previous | View Threaded


zefram at fysh

Nov 7, 2009, 5:02 AM

Post #1 of 2 (59 views)
Permalink
C++ fail with KeywordRPN

A smoke using g++ has revealed:

>KeywordRPN.c: In function 'void XS_XS__APItest__KeywordRPN_import(CV*)':
>KeywordRPN.c:320: error: expected unqualified-id before 'class'
>KeywordRPN.c:320: error: expected initializer before 'class'
>KeywordRPN.c: In function 'void XS_XS__APItest__KeywordRPN_unimport(CV*)':
>KeywordRPN.c:357: error: expected unqualified-id before 'class'
>KeywordRPN.c:357: error: expected initializer before 'class'
>make[1]: *** [KeywordRPN.o] Error 1
>Unsuccessful make(ext/XS-APItest-KeywordRPN): code=512 at make_ext.pl line 449.
>make: *** [lib/auto/XS/APItest/KeywordRPN/KeywordRPN.so] Error 25

I used "class" as a variable name, but in C++ it's a keyword. Patch
attached. Someone should also add a note about C++ compatibility to
perlhack.pod.

-zefram
Attachments: d0 (0.88 KB)


h.m.brand at xs4all

Nov 7, 2009, 5:07 AM

Post #2 of 2 (54 views)
Permalink
Re: C++ fail with KeywordRPN [In reply to]

On Sat, 7 Nov 2009 13:02:33 +0000, Zefram <zefram[at]fysh.org> wrote:

> A smoke using g++ has revealed:

Yes, smokes++ :)

> >KeywordRPN.c: In function 'void XS_XS__APItest__KeywordRPN_import(CV*)':
> >KeywordRPN.c:320: error: expected unqualified-id before 'class'
> >KeywordRPN.c:320: error: expected initializer before 'class'
> >KeywordRPN.c: In function 'void XS_XS__APItest__KeywordRPN_unimport(CV*)':
> >KeywordRPN.c:357: error: expected unqualified-id before 'class'
> >KeywordRPN.c:357: error: expected initializer before 'class'
> >make[1]: *** [KeywordRPN.o] Error 1
> >Unsuccessful make(ext/XS-APItest-KeywordRPN): code=512 at make_ext.pl line 449.
> >make: *** [lib/auto/XS/APItest/KeywordRPN/KeywordRPN.so] Error 25
>
> I used "class" as a variable name, but in C++ it's a keyword. Patch
> attached. Someone should also add a note about C++ compatibility to
> perlhack.pod.

Applying: C++ fail with KeywordRPN
Thanks, patch successfully applied as 58e85f6bd3e5ead9541e7b32918133d0e26f32e7

--
H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/
using & porting perl 5.6.2, 5.8.x, 5.10.x, 5.11.x on HP-UX 10.20, 11.00,
11.11, 11.23, and 11.31, OpenSuSE 10.3, 11.0, and 11.1, AIX 5.2 and 5.3.
http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/
http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/

Perl porters RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.