discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: Are there firls and kaiser filter methods for C++ OOT?


From: Marcin Puchlik
Subject: Re: Are there firls and kaiser filter methods for C++ OOT?
Date: Tue, 22 Feb 2022 14:39:25 +0100

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 <vvvelichkov@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).

reply via email to

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