SWIG does not carry inherited static functions of derived classes. How can this be solved?
Here is a simple illustration of the problem.
This is a simple C ++ header file:
// file test.hpp
The C ++ source file includes only the header file:
// file test.cpp
The SWIG interface file includes only the C ++ header file:
// file test.swig %module test %{
Then I create the swig shell code as follows:
swig -c++ -tcl8 -namespace main.swig
And then I create a shared library as follows:
g++ -fpic -Wall -pedantic -fno-strict-aliasing \ test.cpp test_wrap.cxx -o libtest.so
Therefore, when loading libtest.so in the tcl interpreter and trying to use a wrapped interface, it has the following behavior:
% load libtest.so test % test::B b % test::D d % b nonstat
So the question is how to get SWIG to wrap D :: stat?
source share