$ g++ -o test test.cpp -ltbbIt doesn't work and couldn't find the tbb libraries. Even when I change it:
$ g++ -o test test.cpp -L/.../linux_ia32_gcc_cc4.1.2_libc2.5_kernel2.6.20_release -ltbbIt still couldn't find the tbb libraries.
leileicats:After execution, it create the sub-directories in the directory "build": linux_ia32_gcc_cc4.1.2_libc2.5_kernel2.6.20_release.
linux_ia32_gcc_cc4.1.2_libc2.5_kernel2.6.20_release folder should contain tbbvars.sh script which you need to source in order to set an environment to built libraries.
leileicats:It doesn't work and couldn't find the tbb libraries. Even when I change it:$ g++ -o test test.cpp -L/.../linux_ia32_gcc_cc4.1.2_libc2.5_kernel2.6.20_release -ltbb
As I can guess you were trying to build from linux_ia32_gcc_cc4.1.2_libc2.5_kernel2.6.20_release folder then you need to set LIB variable via '-L./../linux_ia32_gcc_cc4.1.2_libc2.5_kernel2.6.20_release'. I guess there is a typo in dots and slashes in the command line.
I've just checked that 'g++ test.cpp -L. -ltbb' command works in linux_ia32_gcc_cc4.1.2_libc2.5_kernel2.6.20_release folder.