undefined reference to `tf::Executor::_tear_down_async(tf::Node*)'
renzhong opened this issue · comments
Describe the bug
I think core/executor.hpp should include core/async.hpp
To Reproduce
Steps to reproduce the behavior:
I do include "taskflow/core/executor.hpp" on my cpp file to use tf::Executor executor; when I compile my project catch compile error "undefined reference to `tf::Executor::_tear_down_async(tf::Node*)'"
when I read taskflow/core/executor.hpp code, I find taskflow/core/executor.hpp didn't include core/async.hpp.
I want to know why .
maybe It's a design code for some reason.
the final way to fix this compile error, I need include "taskflow/taskflow.hpp" in my cpp file, but I don't think is the best way for this.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Additional context
You should just include taskflow/taskflow.hpp
in your project which will automatically include all necessary files.