I am trying to add a non block C++ class to the out of tree build of
a module. I successfully compile the code but all my Python tests
fail.
File “/python/qa_test.py”, line 24, in
import example_swig as example
File “/build/swig/example_swig.py”, line 28, in
_example_swig = swig_import_helper()
File “/build/swig/example_swig.py”, line 24, in swig_import_helper
_mod = imp.load_module(’_example_swig’, fp, pathname, description)
ImportError:/build/lib/libgnuradio-example.so: undefined symbol:
_ZTIN2gr15example
I add the header and source files to the CMakeLists.txt and
example_swig.i
What is the best practice to add such code?
–
Andrew