boostのコンパイルが通らない
C++のライブラリのboostを使ったときにコンパイルしたらエラーが起きたのでメモです。
エラー
Undefined symbols for architecture x86_64: "boost::system::generic_category()", referenced from: boost::system::error_category::std_category::equivalent(int, std::__1::error_condition const&) const in test-50e82c.o boost::system::error_category::std_category::equivalent(std::__1::error_code const&, int) const in test-50e82c.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)