fedora8 下 icc+tbb的配置

killgxlin 2008-04-29 07:44:00
我有一个帐号,可以登录,FEDORA8 安装icc 10.1.015,然后把tbb的库文件拷贝到icc目录下的lib里面
tbb的include/tbb目录全部拷贝到icc的include目录下
编译icc -ltbb MergeSort.cpp
出以下错误:
/tmp/iccoLovU2.o: In function `main':
MergeSort.cpp:(.text+0x119): undefined reference to `tbb::task_scheduler_init::initialize(int, unsigned int)'
/tmp/iccoLovU2.o: In function `MergContinuation::execute()':
MergeSort.cpp:(.gnu.linkonce.t._ZN16MergContinuation7executeEv[.gnu.linkonce.t._ZN16MergContinuation7executeEv]+0x165): undefined reference to `tbb::internal::allocate_root_with_context_proxy::allocate(unsigned int) const'
MergeSort.cpp:(.gnu.linkonce.t._ZN16MergContinuation7executeEv[.gnu.linkonce.t._ZN16MergContinuation7executeEv]+0x1b4): undefined reference to `tbb::task_group_context::~task_group_context()'
MergeSort.cpp:(.gnu.linkonce.t._ZN16MergContinuation7executeEv[.gnu.linkonce.t._ZN16MergContinuation7executeEv]+0x1d0): undefined reference to `tbb::task_group_context::~task_group_context()'
/tmp/iccoLovU2.o:(.gnu.linkonce.d._ZTVN3tbb10empty_taskE[.gnu.linkonce.d._ZTVN3tbb10empty_taskE]+0x14): undefined reference to `tbb::task::note_affinity(unsigned short)'
/tmp/iccoLovU2.o:(.gnu.linkonce.d._ZTV16MergContinuation[.gnu.linkonce.d._ZTV16MergContinuation]+0x14): undefined reference to `tbb::task::note_affinity(unsigned short)'
/tmp/iccoLovU2.o:(.gnu.linkonce.d._ZTV8MergSort[.gnu.linkonce.d._ZTV8MergSort]+0x14): undefined reference to `tbb::task::note_affinity(unsigned short)'


请问专家这是怎么回事?
该怎样解决?
谢谢
...全文
109 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
intel_www 2008-05-27
  • 打赏
  • 举报
回复
你可以用 "nm *.so|c++filt|grep initialize" 看看你copy的那些so文件是否包含出错信息中的符号。
killgxlin 2008-05-26
  • 打赏
  • 举报
回复
我copy的是所有的so
killgxlin 2008-05-26
  • 打赏
  • 举报
回复
我也忘了是什么版本的,其实这个问题困扰了很久,下回我在弄的时候发回这里吧。
killgxlin 2008-05-07
  • 打赏
  • 举报
回复
靠别人是没用的,自己解决了,是tbb版本问题,换成stable版的就解决了
intel_www 2008-05-07
  • 打赏
  • 举报
回复
不好意思漏掉了你的帖子。我刚才做了个实验,没有发现development版本有这个错误呀。你copy的是那些库文件?

566

社区成员

发帖
与我相关
我的任务
社区描述
英特尔® 边缘计算,聚焦于边缘计算、AI、IoT等领域,为开发者提供丰富的开发资源、创新技术、解决方案与行业活动。
社区管理员
  • 英特尔技术社区
  • shere_lin
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧