我有 tbbvars.csh 文件的来源。
我按照 (/GettingStarted/sub_string_finder)
的指导打开示例目录,然后运行 make。
不幸的是,我收到以下错误:
sub_string_finder.cpp:32:30: error: tbb/parallel_for.h: No such file or directory
sub_string_finder.cpp:33:31: error: tbb/blocked_range.h: No such file or directory
sub_string_finder.cpp:35: error: tbb is not a namespace-name
有人知道吗?
最佳答案
您必须包含 tbb
目录来编译您的示例
关于c++ - tbb GettingStarted 示例未编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12839315/