ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl5-porters
perl5-porters
C++ fail with KeywordRPN
by Zefram other posts by this author
Nov 7 2009 5:02AM messages near this date
Re: dmake syntax, Win64 and MS compilers. | Re: 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
Thread:
Zefram
H.Merijn Brand

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved