1. 程式人生 > >boost log 報錯undefined reference to boost::log::v2_mt_posix::basic_formatter

boost log 報錯undefined reference to boost::log::v2_mt_posix::basic_formatter

在編譯boost log檔案時報錯提示:

undefined reference to `boost::log::v2_mt_posix::basic_formatter<char> boost::log::v2_mt_posix::parse_formatter<char>(char const*, char const*)'
解決辦法:

在編譯時新增  -lboost_log_setup   即可解決該問題