when including
#include <boost/filesystem.hpp>
usage of
[path].filename().extension().string();
results in
error: undefined reference to `boost::filesystem::path::extension() const'
even though Boost is listed under PACKAGE_DEPENDS
and the header is found.