I have just configured TBB on VS2005 there is issue with the compilation. I have used MSVS plugin . It seems it works as the project got compiled except one thing. it is generating wriong path for copying tbb_debug.dll file into the debug directory of the target. on manual copying of the file it links and gets executed so no issue BUT it is generating error at compile time and no exe generated . so if anyone can guide me about correcting the issue.
these are error messages from the generated file
copy "TBB41_INSTALL_DIR\ia32\vc8\bin\tbb_debug.dll" "Debug"
if errorlevel 1 goto VCReportError
echo Project : error PRJ0019: A tool returned an error code from "Copying tbb_debug.dll"
actually the path should be "TBB41_INSTALL_DIR\bin\ ia32\vc8\tbb_debug.dll" as this is the way the folders have been created by default. So the compiler / macro generated code for copying the file has different path and hence can't copy the file to the debug folder of the project. BUT where / how the wrong path getting generated and how to correct it
Creating temporary file "c:\Arena_TBB\examples\chapter11\ParallelSum\win\vc8\Debug\RSP0000131601852.rsp" with contents [ /Od /I "C:\Program Files\Intel\tbb41\include" /I "TBB41_INSTALL_DIR\include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "TBB_DO_ASSERT" /D "_VC80_UPGRADE=0x0710" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /c /Wp64 /Zi /TP ..\..\src\ParallelSum.cpp ] Creating command line "cl.exe @c:\Arena_TBB\examples\chapter11\ParallelSum\win\vc8\Debug\RSP0000131601852.rsp /nologo /errorReport:prompt" Creating temporary file "c:\Arena_TBB\examples\chapter11\ParallelSum\win\vc8\Debug\RSP0000141601852.rsp" with contents [ /OUT:"Debug/ParallelSum.exe" /INCREMENTAL:NO /LIBPATH:"C:\Program Files\Intel\tbb41\lib\ia32\vc8" /LIBPATH:"TBB41_INSTALL_DIR\ia32\vc8\lib" /MANIFEST /MANIFESTFILE:"Debug\ParallelSum.exe.intermediate.manifest" /DEBUG /PDB:"Debug/ParallelSum.pdb" /SUBSYSTEM:CONSOLE /MACHINE:X86 /FIXED:No tbb_debug.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ".\debug\ParallelSum.obj" ] Creating command line "link.exe @c:\Arena_TBB\examples\chapter11\ParallelSum\win\vc8\Debug\RSP0000141601852.rsp /NOLOGO /ERRORREPORT:PROMPT" Creating temporary file "c:\Arena_TBB\examples\chapter11\ParallelSum\win\vc8\Debug\RSP0000151601852.rsp" with contents [ /outputresource:".\debug\ParallelSum.exe;#1" /manifest .\debug\ParallelSum.exe.intermediate.manifest ] Creating command line "mt.exe @c:\Arena_TBB\examples\chapter11\ParallelSum\win\vc8\Debug\RSP0000151601852.rsp /nologo" Creating temporary file "c:\Arena_TBB\examples\chapter11\ParallelSum\win\vc8\Debug\BAT0000161601852.bat" with contents [ @echo Manifest resource last updated at %TIME% on %DATE% > .\debug\mt.dep ] Creating command line "c:\Arena_TBB\examples\chapter11\ParallelSum\win\vc8\Debug\BAT0000161601852.bat" Creating temporary file "c:\Arena_TBB\examples\chapter11\ParallelSum\win\vc8\Debug\BAT0000171601852.bat" with contents [ @echo off copy "TBB41_INSTALL_DIR\ia32\vc8\bin\tbb_debug.dll" "Debug" if errorlevel 1 goto VCReportError goto VCEnd :VCReportError echo Project : error PRJ0019: A tool returned an error code from "Copying tbb_debug.dll" exit 1 :VCEnd ] Creating command line "c:\Arena_TBB\examples\chapter11\ParallelSum\win\vc8\Debug\BAT0000171601852.bat"
Compiling... ParallelSum.cpp Linking... Embedding manifest... Copying tbb_debug.dll The system cannot find the path specified. Project : error PRJ0019: A tool returned an error code from "Copying tbb_debug.dll"
Build log was saved at "file://c:\Arena_TBB\examples\chapter11\ParallelSum\win\vc8\Debug\BuildLog.htm" ParallelSum - 1 error(s), 0 warning(s)
ulhas k. wrote:"from the box" examples are tested to use zip binary package or with installation and with visual studio 2008 and newer. To use it with your binaries please update
I was running the samples that come with the TBB installation package .