Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.

Link Error 1107


I'm just creating my first TBB enabled app. I got past all of the trivial mistakes, and now I'm getting the following link error:

>C:\Program Files\Intel\TBB\2.0\ia32\vc9\bin\tbb_debug.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x308

I'm using VC9 in debug. I'm linking with the /MDd switch. The only thing I can figure is that I'm using .net for the GUI and the .dll file is incompatible with /clr. Does anyone have a better suggestion? (i.e. one that does not involve relearning MFC and rewriting my whole GUI) TIA

[edit] The release verions did not work either. I just linked with the static lib and it worked. I am using the vc9 versions of both.

0 Kudos
1 Reply
You can not link with a DLL directrly. In fact, you should link with tbb_debug.lib or tbb.lib. Those are not static libraries as you think but import libraries for the TBB DLLs.