Hello, I am new to TBB and also newhere.
I have to post questions for a beginning stage. I cannot compile programs with TBB, describe it below:
- Download theStable Release of TBB, tbb20_014oss, then untar the two files. "tbb20_20070927oss_src" and "tbb20_20070927oss_win" two foldersare created at "c:".
- Copy "c: bb20_20070927oss_winia32vc8" to "c: bb20_20070927oss_src".
- Use Visual Studio 2005 to open the project "sub_string_findervc8sub_string_finder.sln", add settings with include directory and library directory in where the ".h" and ".lib" files are, add a link option with "tbb.lib", then Build Solution. It always gets the following error report.
The system cannot find the path specified.
Project : error PRJ0019: A tool returned an error code from "Copying tbb.dll"
Project : warning PRJ0018 : The following environment variables were not found:
Build log was saved at file://C:DOCUME~1kwai LOCALS~1 Temp bb_examples sub_string_finder Release BuildLog.htm"
sub_string_finder - 1 error(s), 0 warning(s)
- In order to bypass this error, I open a new empty Win32 console project, simply add the file "sub_string_finder.cpp" and have the above settings done. This time I can Build Solution with no error. When I run it, anerror window popped up with the message "This application has failed to start because tbb.dll was not found.". Then I copy *.dll in the "vc8in" into the folder with the executable file together. Now I can run it with no error. But it only open a Command Prompt window and the cursor staying there with nothing to output. I check it into Task Manager, I find the CPU Usage is staying 100% with no fluctuation. After I press Ctrl-C to break the running, everything seems to return to normal.
Please provide any helps to solve the above problems. Sorry for my un-concise English. Thanks very much.