개발

XCode에서 Boost 사용시 오류

생존본능 2022. 5. 5. 15:47

boost/thread 를 사용하면 오류가 발생한다.

Undefined symbol: boost::detail::thread_data_base::~thread_data_base()
Undefined symbol: boost::thread::start_thread_noexcept()
Undefined symbol: boost::thread::detach()
Undefined symbol: typeinfo for boost::detail::thread_data_base

 

 

그래서 직접 가져오는 방식으로 문제를 해결했다.

 

 

liboost_date_time.dylib
liboost_system.dylib
liboost_thread.dylib

위 라이브러리를 추가하였다.