# Static library compilation error (openvdb)

**URL:** <https://forums.unrealengine.com/t/static-library-compilation-error-openvdb/450022>\
**Category:** Platform & Builds\
**Tags:** error, compilation-error, unreal-engine, question\
**Created:** [June 2, 2019, 7:32pm UTC](https://forums.unrealengine.com/t/static-library-compilation-error-openvdb/450022 "2019-06-02T19:32:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_658cd8fe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_658cd8fe](https://forums.unrealengine.com/u/anonymous_user_658cd8fe)\
**Post date:** [June 2, 2019, 7:32pm UTC](https://forums.unrealengine.com/t/static-library-compilation-error-openvdb/450022/1 "2019-06-02T19:32:15Z")

</div>

Hello,

I’m trying to include a library into my project (OpenVDB), but I get tons of errors from TBB headers (but not only) when I try to compile (like error C4668: ‘\_\_TBB\_STATISTICS’ is not defined as a preprocessor macro, replacing with ‘0’ for ‘#if/#elif’)…

Anyone knows what’s wrong with it? Thanks.

---

<div class="post-metadata">

**Author:** ![Bioblaze](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bioblaze](https://forums.unrealengine.com/u/Bioblaze)\
**Post date:** [June 2, 2019, 9:04pm UTC](https://forums.unrealengine.com/t/static-library-compilation-error-openvdb/450022/2 "2019-06-02T21:04:17Z")

</div>

How are you attempting to include the library into your Project?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_658cd8fe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_658cd8fe](https://forums.unrealengine.com/u/anonymous_user_658cd8fe)\
**Post date:** [June 3, 2019, 6:45am UTC](https://forums.unrealengine.com/t/static-library-compilation-error-openvdb/450022/3 "2019-06-03T06:45:32Z")

</div>

Well I’ve put the lib and include files into separate folders (ThirdParty//), then I modified the MyProject.Build.cs and added the paths into PublicIncludePaths and PublicAdditionalLibraries, regenerated the VS solution and compile.

But it seems that the compiler is treating warnings as errors, is that possible?
