Hi,

I am writing a block that needs to call the gr::blocks::count_bits32() method 
in its corresponding CPP script. At the beginning of the script, I have added 
"#include <gnuradio/blocks/count_bits.h>".

When I used the "make" command to compile the program, no errors occurred.

However, when I typed the "ctest -V" command in the terminal to check the 
compilation, the following error appeared: "ImportError: 
/home/<my-path>/build/lib/libgnuradio-<my-module’s-name>.so: undefined symbol: 
_ZN2gr6blocks12count_bits32Ej"

Then, I typed the "c++filt _ZN2gr6blocks12count_bits32Ej" command in the 
terminal and obtained an output: "gr::blocks::count_bits32(unsigned int)".

Do you have any idea why I encounter this error?

Best wishes,
Shumin Yao.

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

Reply via email to