osx - c++ boost on mac compile error -
i've tried with/without -m64 option, not working. how should fix this?
undefined symbols architecture x86_64: "boost::system::system_category()", referenced from: boost::asio::error::get_system_category() in main-6996c8.o boost::system::error_code::error_code() in main-6996c8.o ___cxx_global_var_init.2 in main-6996c8.o "boost::system::generic_category()", referenced from: ___cxx_global_var_init in main-6996c8.o ___cxx_global_var_init.1 in main-6996c8.o ld: symbol(s) not found architecture x86_64
first, using xcode or using command line? second, problem include dir , lib dir not set correctly. third, can go /usr/local/include check if have boost headers , go /usr/local/lib check if have boost libs.
Comments
Post a Comment