oneTBB icon indicating copy to clipboard operation
oneTBB copied to clipboard

How to link TBB dll to my library

Open inline42 opened this issue 2 years ago • 2 comments

Hello everyone,

I have built tbb in both debug and release mode, I generated msvc_19.31_cxx_64_md_debug and msvc_19.31_cxx_64_md_release, as well as x64 folder. I also put ***\oneTBB\include as an additional include library in VS. Now I have to set up the dll. The way I do it when I own the library is I add a post build action in premake, which copies my dll in the other exe/dll. Now I am not the owner of tbb and I don't want to play with the cmake coming with it. Should I just manually copy the dll in my library? Sounds a bit hacky. Could you please help me?

Error: ------ Build started: Project: tests, Configuration: Debug x64 ------ 2>LINK : fatal error LNK1104: cannot open file 'tbb12.lib' 2>Done building project "tests.vcxproj" -- FAILED.

Thank you!

inline42 avatar Mar 22 '22 20:03 inline42

@Veronizlada It seems that you need to add path to the built library (tbb12.lib) to linker options (library path)

@Veronizlada BTW why do you need to build the library from sources?

anton-potapov avatar Mar 23 '22 09:03 anton-potapov

@anton-potapov fixed it! But I don't know how to do it in premake. @anton-potapov I don't know the difference between source and other options.

inline42 avatar Mar 23 '22 20:03 inline42

@Veronizlada is this issue still relevant?

isaevil avatar Oct 05 '22 11:10 isaevil

Closing it since no response.

isaevil avatar Oct 13 '22 08:10 isaevil