Hello Tzougkarakis, do you also /link/ against gr-blocks? It's probably sufficient to add "BLOCKS" to GR_REQUIRED_COMPONENTS in your OOT's main CMakeLists.txt.
Best regards, Marcus On 26.06.2017 21:21, Tzougkarakis Antonis wrote: > Hello, > > I have an OOT module which I have created with gr_modtool and I want > to use the function count_bits_8 and count_bits_16 from > gnuradio/blocks/count_bits.h. I have included the library in my c++ > file but when I try to compile it I get the following message: > > [ 80%] Linking CXX executable test-ieee802_15_4g_testing > libgnuradio-ieee802_15_4g_testing-1.0.0git.so.0.0.0: undefined > reference to `gr::blocks::count_bits8(unsigned int)' > libgnuradio-ieee802_15_4g_testing-1.0.0git.so.0.0.0: undefined > reference to `gr::blocks::count_bits16(unsigned int)' > collect2: error: ld returned 1 exit status > lib/CMakeFiles/test-ieee802_15_4g_testing.dir/build.make:130: recipe > for target 'lib/test-ieee802_15_4g_testing' failed > make[2]: *** [lib/test-ieee802_15_4g_testing] Error 1 > CMakeFiles/Makefile2:137: recipe for target > 'lib/CMakeFiles/test-ieee802_15_4g_testing.dir/all' failed > make[1]: *** [lib/CMakeFiles/test-ieee802_15_4g_testing.dir/all] Error 2 > make[1]: *** Waiting for unfinished jobs.... > [ 80%] Built target ieee802_15_4g_testing_swig_swig_2d0df > Makefile:138: recipe for target 'all' failed > make: *** [all] Error 2 > > I know that it is a link error but I don't know what addition I should > do in order to fix the error. Any help would be appreciated. > > Thank you. > > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio