본문 바로가기

프로그래밍/C++

boost library(부스트 라이브러리) thread_data.hpp:152: undefined reference to `vtable for boost::detail::thread_data_base' 문제 해결

thread 사용 시 문제 발생


link 에러

g++ linker 옵션에

-lboost_thread  추가

[Eclipse 에서 linker 옵션에 추가 하는 방법]

  1. Eclipse 메뉴 - Project - Properties - C/C++ Build - Settings
  2. Tool Settings 탭 - Cross G++ Linker - Miscellaneous - Linker flags 에 추가