I am trying to make the module from https://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules
I am following the same steps. Till "cmake ../ " everything has correctly done. But when i m running "make" the following error comes. please help :) Scanning dependencies of target gnuradio-howto [ 6%] Building CXX object lib/CMakeFiles/gnuradio-howto.dir/square_ff_impl.cc.o In file included from /usr/include/boost/smart_ptr/detail/yield_k.hpp:89:0, from /usr/include/boost/smart_ptr/detail/spinlock_sync.hpp:18, from /usr/include/boost/smart_ptr/detail/spinlock.hpp:41, from /usr/include/boost/smart_ptr/detail/spinlock_pool.hpp:25, from /usr/include/boost/smart_ptr/shared_ptr.hpp:37, from /usr/include/boost/shared_ptr.hpp:17, from /usr/local/include/gnuradio/types.h:27, from /usr/local/include/gnuradio/runtime_types.h:27, from /usr/local/include/gnuradio/io_signature.h:27, from /home/spclab/Desktop/Monika/gr-howto/lib/square_ff_impl.cc:25: /usr/include/boost/thread/xtime.hpp:23:5: error: expected identifier before numeric constant TIME_UTC=1 ^ /usr/include/boost/thread/xtime.hpp:23:5: error: expected ‘}’ before numeric constant /usr/include/boost/thread/xtime.hpp:23:5: error: expected unqualified-id before numeric constant In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0, from /usr/include/boost/thread/mutex.hpp:16, from /usr/include/boost/thread/pthread/thread_data.hpp:12, from /usr/include/boost/thread/thread.hpp:17, from /usr/local/include/gnuradio/thread/thread.h:26, from /usr/local/include/gnuradio/basic_block.h:31, from /usr/local/include/gnuradio/block.h:27, from /home/spclab/Desktop/Monika/gr-howto/include/howto/square_ff.h:26, from /home/spclab/Desktop/Monika/gr-howto/lib/square_ff_impl.h:24, from /home/spclab/Desktop/Monika/gr-howto/lib/square_ff_impl.cc:26: /usr/include/boost/thread/xtime.hpp:46:14: error: expected type-specifier before ‘system_time’ operator system_time() const ^ In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0, from /usr/include/boost/thread/mutex.hpp:16, from /usr/include/boost/thread/pthread/thread_data.hpp:12, from /usr/include/boost/thread/thread.hpp:17, from /usr/local/include/gnuradio/thread/thread.h:26, from /usr/local/include/gnuradio/basic_block.h:31, from /usr/local/include/gnuradio/block.h:27, from /home/spclab/Desktop/Monika/gr-howto/include/howto/square_ff.h:26, from /home/spclab/Desktop/Monika/gr-howto/lib/square_ff_impl.h:24, from /home/spclab/Desktop/Monika/gr-howto/lib/square_ff_impl.cc:26: /usr/include/boost/thread/xtime.hpp: In function ‘int xtime_get(xtime*, int)’: /usr/include/boost/thread/xtime.hpp:73:40: error: ‘get_system_time’ was not declared in this scope *xtp=get_xtime(get_system_time()); ^ /usr/include/boost/thread/xtime.hpp:73:40: note: suggested alternative: In file included from /usr/include/boost/thread/locks.hpp:12:0, from /usr/include/boost/thread/pthread/mutex.hpp:12, from /usr/include/boost/thread/mutex.hpp:16, from /usr/include/boost/thread/pthread/thread_data.hpp:12, from /usr/include/boost/thread/thread.hpp:17, from /usr/local/include/gnuradio/thread/thread.h:26, from /usr/local/include/gnuradio/basic_block.h:31, from /usr/local/include/gnuradio/block.h:27, from /home/spclab/Desktop/Monika/gr-howto/include/howto/square_ff.h:26, from /home/spclab/Desktop/Monika/gr-howto/lib/square_ff_impl.h:24, from /home/spclab/Desktop/Monika/gr-howto/lib/square_ff_impl.cc:26: /usr/include/boost/thread/thread_time.hpp:19:24: note: ‘boost::get_system_time’ inline system_time get_system_time() ^ In file included from /usr/include/boost/thread/pthread/mutex.hpp:14:0, from /usr/include/boost/thread/mutex.hpp:16, from /usr/include/boost/thread/pthread/thread_data.hpp:12, from /usr/include/boost/thread/thread.hpp:17, from /usr/local/include/gnuradio/thread/thread.h:26, from /usr/local/include/gnuradio/basic_block.h:31, from /usr/local/include/gnuradio/block.h:27, from /home/spclab/Desktop/Monika/gr-howto/include/howto/square_ff.h:26, from /home/spclab/Desktop/Monika/gr-howto/lib/square_ff_impl.h:24, from /home/spclab/Desktop/Monika/gr-howto/lib/square_ff_impl.cc:26: /usr/include/boost/thread/xtime.hpp: At global scope: /usr/include/boost/thread/xtime.hpp:88:1: error: expected declaration before ‘}’ token } // namespace boost ^ make[2]: *** [lib/CMakeFiles/gnuradio-howto.dir/square_ff_impl.cc.o] Error 1 make[1]: *** [lib/CMakeFiles/gnuradio-howto.dir/all] Error 2 make: *** [all] Error 2
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio