Hi Vasil,
But I am not creating the OOT module, I want to get filter taps using low_pass() function in simple C++ program (Hello World).
I just want to link gnuradio library and use its function in custom C++ program, here is the code of main.cpp:
#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;
}
I even ran this from cmd with the command: g++ -I/usr/include/gnuradio/filter -L/usr/lib/x86_64-linux-gnu/ main.cpp
and the error is:
/bin/ld: /tmp/ccTlKCri.o: in function `main':
main.cpp:(.text+0xc7): undefined reference to `gr::filter::firdes::low_pass_2(double, double, double, double, double, gr::fft::window::win_type, double)'
collect2: error: ld returned 1 exit status