I can't figure out a linking error to use boost::program_options. Here's a sample c++ code:
alias g++='/opt/local/bin/g++-mp-5 -std=gnu++14 -I/opt/local/include -L/opt/local/lib'
g++ sample_code.cpp -lboost_program_options-mt
Undefined symbols for architecture x86_64:
"boost::program_options::options_description::options_description(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int, unsigned int)"
ld: symbol(s) not found for architecture x86_64
As pointed by Petesh in comments above, the issue turns out to be how MacPorts build
clang++ and not
Unfortunately, MacPorts does not offer any
gcc built variants for