我尝试在我的 Mac 上使用 boost 文件系统。我只添加了以下标头并在尝试编译时出错
# include <boost/filesystem.hpp>
错误是
Undefined symbols for architecture x86_64:
"boost::system::generic_category()", referenced from:
__static_initialization_and_destruction_0(int, int) in cclyDZox.o
"boost::system::system_category()", referenced from:
__static_initialization_and_destruction_0(int, int) in cclyDZox.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
任何帮助表示赞赏