discuss-gnuradio
[Top][All Lists]
Advanced

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

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


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] C++ Class in out of tree module 3.7
Date: Mon, 10 Nov 2014 20:56:58 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

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?




reply via email to

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