c++ - tbb GettingStarted 示例未编译

标签 c++ linux redhat tbb

我有 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/

相关文章:

c++ - 机器的基本字符集

linux - 无法从 Linux 中的同一台机器上 ping 通主机名

linux - 在 RHEL 6 x64 中配置网络音频系统 [NAS] 时出错

C++ - 检测死套接字

c++ - 测量计算几何算法的运行时间

c++ - g++ -Wall 没有关于 double-> int cast 的警告

linux - sed:如何在文本 block 后插入行?

linux - 在 linux 上有什么工具可以比较 2 个文件夹并生成补丁文件吗?

c - 应用程序未链接到 CUDA

centos - 当正在安装废弃另一个 RPM 的 RPM 时如何检测升级