discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Undefined reference gr::blocks::count_bits8


From: Tzougkarakis Antonis
Subject: [Discuss-gnuradio] Undefined reference gr::blocks::count_bits8
Date: Mon, 26 Jun 2017 22:21:41 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0

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.




reply via email to

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