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
>
>
>
No comments:
Post a Comment