1
Starting build ...
/ usr / bin / g ++ - 10 -g /home/andrey/Documents/testboost/bhkj.cpp -o / home / andrey / Documents / testboost / bhkj
/ usr / bin / ld: /tmp/cchGdzFn.o: in the function "boost :: asio :: detail :: posix_event :: posix_event ()":
/usr/include/x86_64-linux-gnu/boost/asio/detail/impl/posix_event.ipp:44: undefined reference to "pthread_condattr_setclock"
/ usr / bin / ld: /tmp/cchGdzFn.o: in the function "boost :: asio :: detail :: posix_thread :: ~ posix_thread ()":
/usr/include/x86_64-linux-gnu/boost/asio/detail/impl/posix_thread.ipp:35: undefined reference to "pthread_detach"
/ usr / bin / ld: /tmp/cchGdzFn.o: in the function "boost :: asio :: detail :: posix_thread :: join ()":
/usr/include/x86_64-linux-gnu/boost/asio/detail/impl/posix_thread.ipp:42: undefined reference to "pthread_join"
/ usr / bin / ld: /tmp/cchGdzFn.o: in the function "boost :: asio :: detail :: posix_thread :: start_thread (boost :: asio :: detail :: posix_thread :: func_base *)":
/usr/include/x86_64-linux-gnu/boost/asio/detail/impl/posix_thread.ipp:59: undefined reference to "pthread_create"
collect2: error: ld returned 1 exit status 
Evg
  • 25,259
  • 5
  • 41
  • 83

0 Answers0