0

我正在尝试使用std::sort(std::execution::par,x.begin(),x.end());所以我需要告诉编译器应该使用 c++17 或 c+20。在我的 make 文件中,我写道: CXX_COMPILE=mpic++ -std=c++17 -fopenmp -Wall -Wextra -fPIC $(OPT_DEBUG) CXX_LINK=mpic++ -fPIC $(EXTRAFLAGS) $(OPT_DEBUG) 我得到了错误: fatal error: tbb/blocked_range.h: No such file or directory 所以我安装了 tbb 并将 CXX_COMPILE 修改为: CXX_COMPILE=mpic++ -ltbb -std=c++17 -fopenmp -Wall -Wextra -fPIC $(OPT_DEBUG) 编译这给了我一堆错误,告诉我:

undefined reference to `typeinfo for tbb::task' 
internal::allocate_continuation_proxy::allocate(unsigned long) const'
tbb::internal::allocate_child_proxy::allocate(unsigned long) const'

Makefile有什么问题吗?

4

0 回答 0