rt.编译器是下载xcode后自带的g++.使用的macports安装的boost
编译下列代码时报错
#include <boost/asio.hpp>
int main() {
return 0;
}
报错如下:
Undefined symbols for architecture x86_64:
"boost::system::system_category()", referenced from:
__static_initialization_and_destruction_0(int, int)in ccL0VAVg.o
boost::asio::error::get_system_category() in ccL0VAVg.o
"boost::system::generic_category()", referenced from:
__static_initialization_and_destruction_0(int, int)in ccL0VAVg.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
请问有大神知道是为什么嘛。
使用xcode也报一些不知道什么的错(Apple Mach-O Linker(Id) Error)..