【问题标题】:Not all components required for linking are present on the command line并非链接所需的所有组件都出现在命令行上
【发布时间】:2013-10-21 21:17:58
【问题描述】:

我正在尝试通过 Intel Parallel Studio XE 2013(Intel C++ 14.0 项目)使用 Intel Threading Building Blocks。我的代码有以下内容

#include <tbb/tbb.h>
using namespace tbb;

我正在尝试对map&lt;char, concurrent_vector&lt;int&gt;&gt; stats 进行操作,特别是执行诸如stats[x].push_back(y) 之类的操作。

并在项目属性中设置了“使用英特尔 TBB”选项。当我尝试编译时,我收到一个错误提示

Error   10  error #11023: Not all components required for linking are present on command line   C:\Dropbox\Projects\Games\Preference\Preference\ipo Preference (Intel C++ 14.0)

随后的错误抱怨我有未解决的外部问题,例如tbb::internal::concurrent_vector_base_v::internal_push_back(...)

我该如何解决这个问题?

【问题讨论】:

  • 您是否启用了 IPP 选项?
  • @herohuyongtao 是的,作为单线程静态库
  • 显示您的链接选项。看来你错过了一些图书馆。
  • 您使用哪个 Visual Studio 版本?

标签: c++ intel tbb


【解决方案1】:

您似乎需要在链接过程中包含 tbb_debug.lib 或禁用自动链接。尝试定义 __TBB_NO_IMPLICIT_LINKAGE

【讨论】:

  • 不,这没有帮助:(
猜你喜欢
  • 2012-09-09
  • 2012-06-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-05-19
相关资源
最近更新 更多