tbb fails with codelite (works fine with VS)

CodeLite installation/troubleshooting forum
Flashing1956
CodeLite Curious
Posts: 1
Joined: Wed Apr 19, 2023 7:26 pm
Genuine User: Yes
IDE Question: C++
Contact:

tbb fails with codelite (works fine with VS)

Post 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!

User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

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

Post 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)

Make sure you have read the HOW TO POST thread
Post Reply