intel的tbb中的奇怪错误 [英] Strange errors in intel's tbb
问题描述
我建立了英特尔的tbb,在我的qt pro文件中,我包括以下行:
INCLUDEPATH + = C:\\Downloads\\libraries\\tbb40_297oss\\include
但是当我尝试编译我的项目时,我收到一个错误:
c:\Downloads\libraries \tbb40_297oss\include\tbb\internal\..\tbb_exception.h:340:错误:命名空间'std'中的'exception_ptr'未命名类型
还有什么我应该做吗?我不能在任何地方找到任何.lib文件。
这是因为你没有 _GLIBCXX_ATOMIC_BUILTINS_N
(N = 1,2,4,8)中定义 >
这是我的问题。 原来,我的MingW不是由于配置问题正确安装。
当我处理的时候,我花了太多的时间与这些类型的狗屎,这是非常非常深夜。我已经生病了,自己定义了这些宏。
TBB编译并运行没有问题,因为那一天。
I've build intel's tbb, and in my qt pro file I've included following line:
INCLUDEPATH += "C:\\Downloads\\libraries\\tbb40_297oss\\include"
but when I try to compile my project I'm getting an error:
c:\Downloads\libraries\tbb40_297oss\include\tbb\internal\..\tbb_exception.h:340: error: 'exception_ptr' in namespace 'std' does not name a type
Is there anything else I'm supposed to do? I cannot find any .lib files anywhere.
It is because you don't have _GLIBCXX_ATOMIC_BUILTINS_N
(N = 1,2,4,8) defined in bits/c++config.h
Well this was my problem. It turned out that my MingW was not installed properly because of a configuration issue.
When I was dealing with that I had spent too much time with those types of shit and it was very very late at night. I had got sick and defined those macros myself.
TBB compiles and runs without problems since that day.
这篇关于intel的tbb中的奇怪错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!