So I started learning TBB just today. I'm working on Ubuntu system, so installed TBB using sudo apt
sudo apt-get install libtbb-dev
now I'm trying to compile and run HELLO_TBB
#include <iostream> #include <tbb/tbb.h> int main() { tbb::parallel_invoke( []() { std::cout << " Hello " << std::endl; }, []() { std::cout << " TBB! " << std::endl; } ); return 0; } and when trying to compile it I get the next note:
$ g++ Hello_TBB.cpp -o test -ltbb In file included from Hello_TBB.cpp:2: /usr/local/include/tbb/tbb.h:21:154: note: #pragma message: TBB Warning: tbb.h contains deprecated functionality. For details, please see Deprecated Features appendix in the TBB reference manual. 21 | ee Deprecated Features appendix in the TBB reference manual.") and when running the code it actually prints Hello TBB only once! is that how it works? or am I missing something? and what the deal with that note?