program_options を共有ライブラリにリンクしている場合:
g++ -L/path_to_static_boost_libs -shared -o "test.so" ./test.o -lboost_program_options
abstract_variables_map::operator[] の参照が未定義のため、ライブラリを読み込めません:
0009b9f8 W int const& boost::program_options::variable_value::as<int>() const
U boost::program_options::abstract_variables_map::operator[](std::string const&) const
0009b55e W boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_any_cast> >::clone() const
program_options ライブラリが静的にリンクされた別のプログラム (共有ライブラリではない) をビルドしようとしましたが、未定義の参照が取得されませんでした。
共有ライブラリをリンクしているときに未定義の参照が発生するのはなぜですか?