我尝试在我的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
任何帮助表示赞赏
链接时,你没有忘记标志-lboost_system和-lboost_filesystem吗? – toch 2013-03-03 19:48:30