discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: Reference indefined


From: Marcus Müller
Subject: Re: Reference indefined
Date: Tue, 11 May 2021 13:38:59 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1

Hi Fred,

indeed, your link_directories need to include the BLOCKS library, not just 
RUNTIME, when
you're linking against any code in gr::blocks.

I might be a bit behind on current GNU Radio developments, but GNU Radio 3.11 
isn't even
in development yet, far as I can tell. Is it possible you're referring to 
3.10.0.git?

Best regards,
Marcus

On 11.05.21 13:30, COURANT Frederique - Contractor wrote:
> Hello Users,
> 
>  
> 
> I try to develop my own program in C++ with UHD3.14 and gnuradio 3.11.
> 
> I have no problem to compile blocks that are including in uhd but when I want 
> to compile
> with a sig_source or magphase_to_complex blocks  that are including in 
> Gnuradio blocks I
> have the following error :
> 
> Main.cpp(.text+0x1351) : référence indefinite vers 
> “ gr::analog::sig_source_c::make(double, gr::analog::gr_waveform_t, double 
> int) “
> 
> Main.cpp(.text+0x1351) : référence indefinite vers 
> “ gr::blocks::magphase_to_complex::make(double, gr::analog::gr_waveform_t, 
> double int) “
> 
>  
> 
> In think I forgot something in my CMakeFiles, I have
> include_directories(${GNURADIO_ALL_INCLUDE_DIRS}) and
> link_directories(${GNURADIO_RUNTIME_LIBRARY_DIRS})
> 
>  
> 
> Someone could help me please or give an example of CMakeFiles that are using 
> UHD and
> Gnuradio for compile a program.
> 
>  
> 
> Thanks for your help.
> 
>  
> 
> Regards.
> 
>  
> 
> Fred
> 
>  
> 

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

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