discuss-gnuradio
[Top][All Lists]
Advanced

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

RE: Reference indefined


From: COURANT Frederique - Contractor
Subject: RE: Reference indefined
Date: Tue, 11 May 2021 13:34:56 +0000

I have tried to add ${GNURADIO_BLOCKS_INCLUDE_DIRS} and 
${GR_BLOCKS_INCLUDE_DIRS} without any success.

Anyone could give an example of CMakeList that use uhd and gnuradio module 
please ?

Thanks.

Regards.

Fred

-----Message d'origine-----
De : Discuss-gnuradio 
<discuss-gnuradio-bounces+frederique.courant=external.thalesgroup.com@gnu.org> 
De la part de COURANT Frederique - Contractor
Envoyé : mardi 11 mai 2021 13:55
À : Marcus Müller <mueller@kit.edu>; discuss-gnuradio@gnu.org
Objet : RE: Reference indefined

Sorry I would like to say 3.7.11.

If I have understand I need to add ${GNURADIO_BLOCKS_INCLUDE_DIRS} in my 
CMakeFiles that's all ?

Thank you very much for your help.

Regards.

Fred

-----Message d'origine-----
De : Discuss-gnuradio 
<discuss-gnuradio-bounces+frederique.courant=external.thalesgroup.com@gnu.org> 
De la part de Marcus Müller Envoyé : mardi 11 mai 2021 13:39 À : 
discuss-gnuradio@gnu.org Objet : Re: Reference indefined

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
> 
>  
> 





reply via email to

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