I'm running FeedTwoMouths example on Fedora 9 using tbb2.2.
Since the task scheduler initialization is optional for tbb2.2, so I commentted out the line
tbb::task_scheduler_init init( argc>1 ? strtol(argv,0,0) : 3 );
in main() function. It compiled but I got segfault whenI ran it.
Then I did the same thing on Windows xp (comment out the same line and using tbb2.2), the example runs fine.
So my question is when I use tbb2.2, the automatic task initialization is not the same thing as I can just simply comment out the initializatin line? Then Why it works on xp? Or is it an OS related issue? Maybe Fedora 9 is too old?