如何在Ubuntu上安装TBB?

时间:2011-10-20 22:17:39

标签: tbb

我从http://threadingbuildingblocks.org/ver.php?fid=174

下载了tbb40_233oss_lin.tgz文件

我将“TBBROOT”变量设置为bash_proflie中的目录,然后解压缩tar文件并导航到bin文件夹并运行tbbvars.sh文件

我打字

sh tbbvars.sh intel64

我试图运行示例,但是它显示为bleow

count_strings.cpp:38:37: fatal error: tbb/concurrent_hash_map.h: No such file or directory

我尝试手动设置库路径并输入

g++ file.cpp -o output -L/path/to/the/lib/-ltbb

但它仍然抱怨。

如何在Ubuntu上编译示例代码?

提前致谢。

1 个答案:

答案 0 :(得分:7)

我是从Ubuntu存储库安装的,它可以在没有任何问题的情况下运行。