hi , i am making a java interface of Point cloud library, and i am having a problem with incomplete types (not defined types) ( the marked with SWIG_TYPE_P_)
the problems are:
we have an incomplete type SWIG_TYPE_P_typename which is defined in wrapper package (using a main package called wrapper when invoking swig)
when this type is used in ordinary type , it will be called SWIG_TYPE_P_typename, but to correct the compilation error , it must be called wrapper.SWIG_TYPE_P_typename , the javac compiler simply doesn't know in which package SWIG_TYPE_P_typename is located into
aren't applyed to java incomplete types (i am expecting this macros to change the access modifiers of the methods of the wrapped types from protect to public, so it can be used in other types that aren't located in the same package)
the below simple project will demonstrate the above 2 bugs (use ./exec.sh to invoke swig and the javac compiler) [I am using ubuntu 12.04 on a virtual box machine]
Log in to post a comment.