Trying the example for calling Java from TCL and getting this:
adrian@adrian-small-laptop:~/work/tcl/swig-2.0.4/Examples/tcl/java$ make
gcj -fPIC -C -c -g Example.java
gcjh -classpath . Example
make -f ../../Makefile CXXSRCS='' SWIG='../../../preinst-swig' \
TARGET='example' INTERFACE='example.i' CXX="gcj" \
TCL_CXXSHARED="gcj -fpic -shared Example.class " LIBS="-lstdc++" DEFS='' tcl_cpp
make[1]: Entering directory `/home/adrian/work/tcl/swig-2.0.4/Examples/tcl/java'
../../../preinst-swig -tcl8 -c++ example.i
gcj -c -fpic example_wrap.cxx -isystem /usr/include/tcl8.5
cc1plus: warning: command line option ‘-fbootclasspath=./:/usr/share/java/libgcj-4.6.jar’ is valid for Java but not for C++ [enabled by default]
example_wrap.cxx: In function ‘int _wrap_JvAllocObject__SWIG_0(ClientData, Tcl_Interp*, int, Tcl_Obj* const*)’:
example_wrap.cxx:1870:39: error: ‘JvAllocObject’ was not declared in this scope
example_wrap.cxx: In function ‘int _wrap_JvAllocObject__SWIG_1(ClientData, Tcl_Interp*, int, Tcl_Obj* const*)’:
example_wrap.cxx:1899:44: error: ‘JvAllocObject’ was not declared in this scope
example_wrap.cxx: In function ‘int _wrap_JvCreateJavaVM(ClientData, Tcl_Interp*, int, Tcl_Obj* const*)’:
example_wrap.cxx:2269:37: error: invalid conversion from ‘void*’ to ‘JvVMInitArgs* {aka _Jv_VMInitArgs*}’ [-fpermissive]
/usr/include/c++/4.6/gcj/cni.h:127:1: error: initializing argument 1 of ‘jint JvCreateJavaVM(JvVMInitArgs*)’ [-fpermissive]
make[1]: *** [tcl_cpp] Error 1
make[1]: Leaving directory `/home/adrian/work/tcl/swig-2.0.4/Examples/tcl/java'
make: *** [all] Error 2
Is this a known issue, or is it not really supported?
TIA
William
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Swig-user mailing list
Swig...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user