Hello all,

I am trying to log using the boost logging library from my block. I specify
the following cmake flags when generating the makefile:

cmake ../ -DCMAKE_EXE_LINKER_FLAGS="-lboost_log -lpthread
-lboost_log_setup" -DCMAKE_SHARED_LINKER_FLAGS="-lboost_log_setup
-lboost_log -lpthread" -DCMAKE_MODULE_LINKER_FLAGS="-lboost_log_setup
-lboost_log -lpthread" -DCMAKE_CXX_FLAGS="-DBOOST_LOG_DYN_LINK -std=c++11"

When I go to run my test case, I get the following unresolved link:


-- ImportError:
/home/mranga/gr-msod-sensor/gr-msod_sensor/build/lib/libgnuradio-msod_sensor.so:
undefined symbol:
_ZN5boost3log11v2_mt_posix3aux25unhandled_exception_countEv

What flags am I missing? My boost library is set up and LD_LIBRARY_PATH
points to the right location. I hope I have not missed the obvious.

Thanks in advance for your help.


M. Ranganathan
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to