Strange errors in intel's tbb

匆匆过客 提交于 2019-12-02 16:41:23

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/9537219/strange-errors-in-intels-tbb

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!