Hi Andrew,
you're probably doing everything right!
When looking at the headers of C++ block, you will notice that the classes have a "MODULENAME_API" makro prefix. Did you use that on your class?

Best regards,
Marcus


On 11/10/2014 08:37 PM, Andrew Burger wrote:
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 <module>
     import example_swig as example
   File "/build/swig/example_swig.py", line 28, in <module>
     _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?


_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to