So while running: *g++ -gnuradio-filter main.cpp* I get:
*/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* main.cpp is: *#include <iostream>#include <gnuradio/math.h>#include <gnuradio/filter/firdes.h>#include <gnuradio/fft/window.h>using namespace std;int main() { cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!! std::vector<float> taps = gr::filter::firdes::low_pass(1, 1, 0.3, 0.1); return 0;}* wt., 22 lut 2022 o 14:34 Vasil Velichkov <vvvelich...@gmail.com> napisaĆ(a): > On 22/02/2022 15.31, Marcin Puchlik wrote: > > You are right, it helped thank you. > > You are welcome. > > > One more question, do you know why the command: *g++ main.cpp > > -lgnuradio-filter *works correctly but in different order: *g++ > > -lgnuradio-filter main.cpp* crashes? > > No idea. Give me the full output (the exact error). >