Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
2425 Discussions

Can I statically link TBB into my plugin so I have to only distribute one DLL?

benexocortex_com
Beginner
122 Views
Hi,

I am trying to integrate TBB into a plugin that sits within another application. It is best if I can statically link in TBB so that I can distribute my plugin as a single DLL rather than two DLLs (my plugin DLL and the TBB DLL.) I found some of the documentation confusing in this regards or maybe I was looking in the wrong place. Is it possible to fully statically link TBB into my singular plugin DLL on Windows 32 and Windows 64 as well as Linux 64 (in that case I only one to use a singular *.so file)?

Best regards,
Ben Houston
http://www.exocortex.com
0 Kudos
2 Replies
Alexey_K_Intel3
Employee
122 Views
Short answer is "static linking with TBB is not a supported usage model". We do not provide static TBB libraries.

Longer answer is that it is especially not recommended for DLLs. The application itself or another DLL can also use TBB, and having two copies of TBB in the same address space is not a good idea.

Even longer answer can be found in the TBB FAQ: http://www.threadingbuildingblocks.org/wiki/index.php?title=Using_TBB#Is_there_a_version_of_TBB_that...
benexocortex_com
Beginner
122 Views
Thanks Alexey Kukanov (Intel).

That was a greatly detailed answer.

-ben

Reply