Boost 1_65_1 in UE4?

Hey there, I’m trying to integrate boost as a plugin into my Unreal project. I followed this tutorial Unreal Engine: Including a Third-Party Library (on the example of the Point Cloud Library and Boost) [Tutorial] [Download] – Valentin Kraft's Portfolio and when I just download the PCL plugin and use this everything works fine. But there are only a few of the boost .libs and .dlls contained in this plugin and I need much more (e.g. the libboost_signals_xxx.lib s), so I wanted to build my own boost .libs and .dlls. I used this source as a base: https://dl.bintray.com/boostorg/release/1.65.1/source/ (version is important). But I can’t get it working because of undefined makros. This is my error log:

3>  Unknown compiler version - please run the configure tests and report the results
3>C:\Users\agcg\Documents\Unreal_Projects\Temp\Plugins\RSBInterface\Source\ThirdParty\RSB\include\boost/config/stdlib/dinkumware.hpp(99): error C4668: "_HAS_NAMESPACE"  is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
3>C:\Users\agcg\Documents\Unreal_Projects\Temp\Plugins\RSBInterface\Source\ThirdParty\RSB\include\boost/throw_exception.hpp(3): error C4668: "__GNUC__"  is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
3>C:\Users\agcg\Documents\Unreal_Projects\Temp\Plugins\RSBInterface\Source\ThirdParty\RSB\include\boost/throw_exception.hpp(3): error C4668: "__GNUC_MINOR__"  is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
3>C:\Users\agcg\Documents\Unreal_Projects\Temp\Plugins\RSBInterface\Source\ThirdParty\RSB\include\boost/exception/exception.hpp(8): error C4668: "__GNUC__"  is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
3>C:\Users\agcg\Documents\Unreal_Projects\Temp\Plugins\RSBInterface\Source\ThirdParty\RSB\include\boost/exception/exception.hpp(8): error C4668: "__GNUC_MINOR__"  is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
3>C:\Users\agcg\Documents\Unreal_Projects\Temp\Plugins\RSBInterface\Source\ThirdParty\RSB\include\boost/predef/other/endian.h(151): error C4668: "BOOST_ARCH_AMD64"  is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
3>C:\Users\agcg\Documents\Unreal_Projects\Temp\Plugins\RSBInterface\Source\ThirdParty\RSB\include\boost/smart_ptr/shared_ptr.hpp(801): error C4668: "__GNUC__"  is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'

How do I solve this makro problem?

Wrapping the includes of the third party files into this macro seems to solve this issue:

THIRD_PARTY_INCLUDES_START

#include <boost/thread/mutex.hpp>

THIRD_PARTY_INCLUDES_END

There seem to be some naming issues why those macros are not defined, maybe…