On Fri, 4 Jun 2010, Bill Janssen wrote:

I'm trying to compile iText 5.0.2 with JCC 2.5, and it's choking on this
line in a generated .h file:

                   static PdfName *DOMAIN;

build/_iText/com/itextpdf/text/pdf/PdfName.h:202: error: expected 
unqualified-id before numeric constant
build/_iText/com/itextpdf/text/pdf/PdfName.h:202: error: abstract declarator 
?com::itextpdf::text::pdf::PdfName*? used as declaration
build/_iText/com/itextpdf/text/pdf/PdfName.h:202: error: expected ?;? before 
numeric constant
build/_iText/com/itextpdf/text/pdf/PdfName.h:202: error: expected 
unqualified-id before numeric constant
build/_iText/com/itextpdf/text/pdf/PdfName.h:202: error: abstract declarator 
?com::itextpdf::text::pdf::PdfName*? used as declaration
build/_iText/com/itextpdf/text/pdf/PdfName.h:202: error: expected ?;? before 
numeric constant

Since when is DOMAIN a C++ reserved word?

It's probably defined in some header file to something reserved or something not a word. You can add it to the JCC reserved words list via --reserved until it's added to the built-in reserved word list in the next release.

Andi..

Reply via email to