Page 1 of 1

tbb fails with codelite (works fine with VS)

Posted: Tue Aug 15, 2023 12:40 am
by Flashing1956

I tried to install the tbb library for c++. I used vcpkg on install it, I installed it directly with intels installer and I compiled it with cmake and vscode - neither of those three libraries works when linked. It seems to find the header and lib files but then runs into several undefined references:
"undefined reference to 'tbb::detail::r1::notify_waiters(unsigned long long'"
"undefined reference to 'tbb::detail::r1::execution_slot(tbb::detail::d1::execution_data const*)'"
...

The code I tried is from one of the test sites from intel (tbb::parallel_invoke(...);). The same code compiles fine however in VS Community 2022.

Does any of this sound familiar? Can anybody help me to get tbb running in Codelite?

Many thanks!


Re: tbb fails with codelite (works fine with VS)

Posted: Fri Sep 15, 2023 6:58 pm
by eranif

this looks like a compiler issue. CodeLite does not come with a compiler, I often recommend people to use clang for Windows.
Installing from vcpkg hint that you need VC compiler (which I am not very familiar with)