Cannot find C++ library when linking, error compliling the `boost::program_options` example
问题 I am trying to compile the multiple_sources.cpp to compile on my computer. I am running Xubuntu Lucid Lynx fully updated. It will compile without issue with g++ -c multiple_sources.cpp but when I try to link and make an exectuable with g++ multiple_sources.o I get: multiple_sources.cpp:(.text+0x3d): undefined reference to `boost::program_options::options_description::m_default_line_length' multiple_sources.cpp:(.text+0x87): undefined reference to `boost::program_options::options_description: