discuss-gnuradio
[Top][All Lists]
Advanced

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

RE: Problem on calling the count_bits32() method


From: Shumin Yao
Subject: RE: Problem on calling the count_bits32() method
Date: Wed, 16 Dec 2020 00:15:25 +0000

Hi Marcus,

 

Thanks for your reply.

 

However, I do not understand it (I guess this is because I am a beginner). Sorry.

 

I did not link my block to any gnuradio-blocks. And I have written nothing in my block’s QA file.

 

Are you suggesting that I need to include more things at the beginning of my block’s CPP script?

 

Best wishes,

Shumin Yao.

 

Sent from Mail for Windows 10

 

From: Marcus Müller
Sent: Tuesday, December 15, 2020 19:44
To: discuss-gnuradio@gnu.org
Subject: Re: Problem on calling the count_bits32() method

 

Are you linking against gnuradio-blocks?
You'll need something like (depends on your GNU Radio's OOT template how
this looks exactly):

target_link_libraries(gnuradio-yourmodulename gnuradio::gnuradio-runtime
gnuradio::gr-blocks)


On 15.12.20 10:38, Shumin Yao wrote:
> 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

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