On 22/02/2022 15.39, Marcin Puchlik wrote:
> So while running: *g++ -gnuradio-filter main.cpp*   I get:

You are missing an l between - and gnuradio

> */bin/ld: /tmp/ccChkcfC.o: in function `main':main.cpp:(.text+0x8d):
> undefined reference to `gr::filter::firdes::low_pass(double, double,
> double, double, gr::fft::window::win_type, double)'collect2: error: ld
> returned 1 exit status*

Works on my machine :)

$ g++ -lgnuradio-filter main.cpp  
$ ll
total 32
-rwxrwxr-x. 1 vasko vasko 27112 Feb 22 15:41 a.out
-rw-rw-r--. 1 vasko vasko   325 Feb 22 15:40 main.cpp

$ ./a.out 
!!!Hello World!!!

$ ldd a.out | grep filter
        libgnuradio-filter.so.3.8.2 => /lib64/libgnuradio-filter.so.3.8.2 
(0x00007fbf4984d000)

$ objdump -TC a.out  | grep filter
0000000000000000      DF *UND*  0000000000000000              
gr::filter::firdes::low_pass(double, double, double, double, 
gr::filter::firdes::win_type, double)

 




  • Re: Are t... GNU Radio, the Free & Open-Source Toolkit for Software Radio
    • Re: ... George Edwards
    • Re: ... George Edwards
      • ... GNU Radio, the Free & Open-Source Toolkit for Software Radio
        • ... Vasil Velichkov
          • ... GNU Radio, the Free & Open-Source Toolkit for Software Radio
            • ... Vasil Velichkov
              • ... GNU Radio, the Free & Open-Source Toolkit for Software Radio
              • ... Vasil Velichkov
              • ... GNU Radio, the Free & Open-Source Toolkit for Software Radio
              • ... Vasil Velichkov
              • ... GNU Radio, the Free & Open-Source Toolkit for Software Radio
      • ... Vasil Velichkov
        • ... George Edwards
          • ... GNU Radio, the Free & Open-Source Toolkit for Software Radio
            • ... George Edwards
              • ... GNU Radio, the Free & Open-Source Toolkit for Software Radio
              • ... George Edwards
              • ... GNU Radio, the Free & Open-Source Toolkit for Software Radio

Reply via email to