问题
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