Undefined reference to tbb::internal::concurrent_vector_base
Solution 1:
You are getting errors because your code is unable to link with the TBB library.
"-ltbb" this flag is used to link with TBB library files
Please try compiling your code with the below command
g++ main.cpp -ltbb