LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Linker: fatal error LNK1104: cannot open file 'tbb_debug.lib' (http://www.linuxquestions.org/questions/programming-9/linker-fatal-error-lnk1104-cannot-open-file-tbb_debug-lib-856651/)

h.aliee 01-16-2011 10:45 AM

Linker: fatal error LNK1104: cannot open file 'tbb_debug.lib'
 
Dear all,

Recently I have downloaded TBB and I want to run a program using its libraries.
But I encountered the following error:

Linker: fatal error LNK1104: cannot open file 'tbb_debug.lib'

Can any one help me with this error?
Thanks in advance for your help.

Hana

h.aliee 01-16-2011 12:20 PM

It was solved:

1. Locate the configuration scripts for your operating system. The scripts are located in the bin directory.
2. Execute the appropriate scripts or set properties for your operating system:

On Linux* and Mac OS* X operating systems, from the bin directory, source the tbbvars.[c]sh script. These scripts modify the paths held by the LD_LIBRARY_PATH, DYLD_LIBRARY_PATH (Mac OS* X), and CPATH variables, and affect only your current shell.

On Windows* operating systems, modify your Visual Studio project build configurations (debug, release) properties as follows:

C/C++ Properties

General: add an additional include directory:
"$(TBB30_INSTALL_DIR)\include"

Linker Properties

General: add an additional library directory (shown for Visual Studio 2005 32-bit library):
$(TBB30_INSTALL_DIR)\lib\ia32\vc8

Input: add an additional dependency
tbb_debug.lib or tbb.lib


All times are GMT -5. The time now is 11:44 AM.