I've installed JCC-2.14 in Python 2.7.3 on OS X Leopard with gcc-4.2,
and I'm trying to wrap a library with

% python -m jcc --jar ../bin/GoodStuff.jar --jar ../bin/MoreGoodStuff.jar 
--include ../bin/Prereqs.jar --python goodstuff --files 10 --reserved inline 
--build --install --rename java.awt.Component=AWTComponent

[GoodStuff defines another class called "Component", thus the need for the 
java.awt rename.]

I get the following error:

/local/python-2.7/lib/python2.7/site-packages/JCC-2.14-py2.7-macosx-10.5-intel.egg/jcc/sources/functions.h:
 In function 'PyObject* get_generic_iterator_next(T*) [with T = 
java::util::t_Iterator, U = JArray<java::lang::t_Object>]':
build/_goodstuff/__wrap04__.cpp:31896:   instantiated from here
/local/python-2.7/lib/python2.7/site-packages/JCC-2.14-py2.7-macosx-10.5-intel.egg/jcc/sources/functions.h:184:
 error: 'wrap_jobject' is not a member of 'JArray<java::lang::t_Object>'
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC 
but not for C++
/local/python-2.7/lib/python2.7/site-packages/JCC-2.14-py2.7-macosx-10.5-intel.egg/jcc/sources/functions.h:
 In function 'PyObject* get_generic_iterator_next(T*) [with T = 
java::util::t_Iterator, U = JArray<java::lang::t_Object>]':
build/_goodstuff/__wrap04__.cpp:31896:   instantiated from here
/local/python-2.7/lib/python2.7/site-packages/JCC-2.14-py2.7-macosx-10.5-intel.egg/jcc/sources/functions.h:184:
 error: 'wrap_jobject' is not a member of 'JArray<java::lang::t_Object>'
lipo: can't figure out the architecture type of: /var/tmp//ccWm4vkC.out
error: command 'gcc-4.2' failed with exit status 1

Looks like a JCC bug.  Any ideas?

Bill

Reply via email to