On Thu, Oct 15, 2015 at 5:56 PM, M. Ranganathan <[email protected]> wrote:
> 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 > This isn't really a GNU Radio question, is it? It's a cmake/build question that just happens to be related to building GNU Radio. We support a logging system already, based on log4cpp. We very specifically didn't chose boost's logging library because of its immaturity and incompleteness when we needed a logger. If you need logging, use what's already there: http://gnuradio.org/doc/doxygen/page_logger.html Tom
_______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
