Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Daniel_D
Beginner
79 Views

Include from boost does not detect threading

Hi,

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,

Daniel

 

 

0 Kudos
2 Replies
VidyalathaB_Intel
Moderator
51 Views

Hi Daniel,

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.

Regards,

Vidya

 

Alina_S_Intel
Employee
22 Views

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


Reply