0
#include <boost/coroutine/all.hpp>
using namespace boost::coroutines;

void cooperative(coroutine<void>::push_type &sink){}

int main()
{
  coroutine<void>::pull_type source{cooperative};
  return 0;
}

compiling with g++ -lboost_coroutine main.cpp -o main

I get a lot of output with undefined reference errors.

undefined reference to: boost::coroutines::stack_traits::default_size() boost::coroutines::detail::coroutine_context() boost::coroutines::stack_traits::minimum_size() boost::coroutines::stack_traits::is_unbounded() and so on

Boost version: 1.71.0 OS: Xubuntu 20.04

If necessary, I will provide a complete list with linker errors

Evg
  • 23,109
  • 5
  • 38
  • 74
ibse
  • 407
  • 4
  • 11

0 Answers0