Boost logo

Boost Users :

Subject: [Boost-users] boost log linking
From: Lane (software.research.development_at_[hidden])
Date: 2015-06-30 23:40:57


I'm working with boost log examples (v1.55) of trivial logging and having
issues linking against these libraries. I'm receiving these errors.

undefined reference to `boost::log::v2s_mt_posix::core::get()'
undefined reference to
`boost::log::v2s_mt_posix::core::set_filter(boost::log::v2s_mt_posix::filter
const&)'
In function `main':
undefined reference to `boost::log::v2s_mt_posix::trivial::logger::get()'
undefined reference to `boost::log::v2s_mt_posix::trivial::logger::get()'
undefined reference to `boost::log::v2s_mt_posix::trivial::logger::get()'
undefined reference to `boost::log::v2s_mt_posix::trivial::logger::get()'
undefined reference to `boost::log::v2s_mt_posix::trivial::logger::get()'
more undefined references to
`boost::log::v2s_mt_posix::trivial::logger::get()' follow

What I don't understand is that I have the correct paths to where the
shared libs are located in my make file (-L/usr/lib64) and also included
the libs (-lboost_log -lboost_setup). I have these boost libs on my system.

/usr/lib64/libboost_log_setup-mt.so
/usr/lib64/libboost_log-mt.so
/usr/lib64/libboost_log_setup.so
/usr/lib64/libboost_log.so
/usr/lib64/libboost_log_setup.so.1.55.0
/usr/lib64/libboost_log.so.1.55.0
/usr/lib32/libboost_log_setup-mt.so
/usr/lib32/libboost_log-mt.so
/usr/lib32/libboost_log_setup.so
/usr/lib32/libboost_log.so
/usr/lib32/libboost_log_setup.so.1.55.0
/usr/lib32/libboost_log.so.1.55.0

Anyone see what I'm doing wrong?



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net