discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] C++ Class in out of tree module 3.7


From: Andrew Burger
Subject: [Discuss-gnuradio] C++ Class in out of tree module 3.7
Date: Mon, 10 Nov 2014 14:37:07 -0500

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?

-- 
Andrew



reply via email to

[Prev in Thread] Current Thread [Next in Thread]