c++ boost::filesystem undefined reference to `boost::filesystem3::path::root_name() const'

前端 未结 1 1018
予麋鹿
予麋鹿 2020-12-09 08:58

I keep running across errors when trying to compile code which utilizes the boost::filesystem library. I don\'t understand any of the compiler outputs I am getting. Here is

相关标签:
1条回答
  • 2020-12-09 10:03

    You have to link with -lboost_filesystem -lboost_system. Boost filesystem is not a header-only library; rather, it depends on compiled components.

    0 讨论(0)
提交回复
热议问题