无法使用TBB库编译C ++程序

时间:2015-03-16 13:17:39

标签: c++ linux tbb

我有一个C ++程序,当我用TBB库编译它时,我遇到了以下错误。

ssca2.o:在函数~task': /usr/include/tbb/task.h:533: undefined reference to vtable for tbb :: task' /usr/include/tbb/task.h:533:对vtable for tbb::task' ssca2.o: In function operator new'的未定义引用: /usr/include/tbb/task.h:961:未定义引用tbb::internal::allocate_child_proxy::allocate(unsigned long) const' /usr/include/tbb/task.h:961: undefined reference to tbb :: internal :: allocate_child_proxy :: allocate(unsigned long)const' ssca2.o:在函数first_task::execute()': /home/nandini/sto-stamp-master/stamp-0.9.10/ssca2/ssca2.cpp:101: undefined reference to tbb :: task :: spawn_and_wait_for_all(tbb :: task_list&)'中 ssca2.o:在函数operator new': /usr/include/tbb/task.h:935: undefined reference to中tbb :: internal :: allocate_root_proxy :: allocate(unsigned long)' ssca2.o :(。rodata._ZTI10first_task [_ZTI10first_task] + 0x10):未定义引用typeinfo for tbb::task' ssca2.o:(.rodata._ZTV10first_task[_ZTV10first_task]+0x28): undefined reference to tbb :: task :: note_affinity(unsigned short)' collect2:错误:ld返回1退出状态 make:*** [ssca2]错误1

0 个答案:

没有答案