I have a source file that includes "boost_1_75_0\boost/config/requires_threads.hpp". I get this error from the onbeAPI compiler:
boost_1_75_0\boost/config/requires_threads.hpp(82,4): : error : "Compiler threading support is not turned on. Please set the correct command line options for threading: either /MT /MTd /MD or /MDd"
1># error "Compiler threading support is not turned on. Please set the correct command line options for threading: either /MT /MTd /MD or /MDd"
Here is the part from the command line that is used to compile the code:
/D "_WINDLL" /D "_UNICODE" /D "UNICODE" /WX- /MDd /EHsc /W3 /nologo /Fo"x64\Debug\"
As you can see it defines /MDd
I guess there is some "intel compiler recognition" define missing so that boost detect the correct compiler type.
Thanks for reaching out to us.
Could you please try using icx compiler or Intel C++ Compiler Classic
Meanwhile we will look into this issue internally.
I escalated this issue to the development team.
The workaround is using ICL or ICX compilers. To switch between compilers in Visual Studio, please open Properties -> Configuration Properties -> General -> Platform Toolset and select:
* Intel C++ Compiler 19.2 - to use ICL, Intel Classic Compiler
* Intel C++ Compiler 2021 - to use ICX, Intel NextGen Compiler