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: Marcus Müller
Subject: Re: Problem on calling the count_bits32() method
Date: Tue, 15 Dec 2020 12:43:42 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0

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]