Andi Vajda schrieb: > > On Sat, 28 Feb 2009, Christian Heimes wrote: > >> Once I got the wrappring right I run into another issue. The generated >> code failed to compile: >> >> ... >> >> >> XMLRecordReader.h >> ----------------- >> ... >> XMLRecordReader(const XMLRecordReader& obj) : java::lang::Object(obj) {} >> >> jboolean bool(const java::lang::String&) const; # <<< line 52 > > That looks like a function called 'bool'. It's very likely that 'bool' > is already taken by a type declared in a system or language header file. > > Line 72 in JCC's cpp.py file is a list of reserved words called 'RESERVED'. > You can probably work around this problem by adding 'bool' to this list > rebuilding JCC and reattempting your program.
Thanks Andi! Your proposed solution worked like a charm and the file compiles. However the next file breaks with another error. This time it didn't help to add "operator" to the list of RES In file included from build/_pdfbox/org/apache/pdfbox/examples/util/PrintImageLocations.h:4, from build/_pdfbox/__init__.cpp:2497: build/_pdfbox/org/apache/pdfbox/util/PDFStreamEngine.h:10: error: expected identifier before 'operator' build/_pdfbox/org/apache/pdfbox/util/PDFStreamEngine.h:10: error: expected type-specifier before '{' token build/_pdfbox/org/apache/pdfbox/util/PDFStreamEngine.h:94: error: expected ',' or '...' build/_pdfbox/__init__.cpp:4226: error: expected identifier before 'operator' namespace org { namespace apache { namespace pdfbox { namespace util { namespace operator { # <<< line 10 class OperatorProcessor; } class Matrix; } Christian