- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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_provides_statically_linked_libraries.3F
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_provides_statically_linked_libraries.3F
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page