Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

TBB compile error: iterators.h(246)

Joey
Beginner
562 Views

 (4):1>C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.1.216\windows\tbb\include\tbb/iterators.h(246): error : namespace "std" has no member "result_of"
  (8):1>C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.1.216\windows\tbb\include\tbb/iterators.h(246): error : expected an identifier
  (12):1>C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.1.216\windows\tbb\include\tbb/iterators.h(246): error : expected a ";"
  (16):1>C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.1.216\windows\tbb\include\tbb/iterators.h(260): error : identifier "reference" is undefined
  (20):1>C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.1.216\windows\tbb\include\tbb/iterators.h(263): error : identifier "reference" is undefined

Windows 10 with VS2019

Microsoft Visual Studio Professional 2019
Version 16.6.0
VisualStudio.16.Release/16.6.0+30114.105
Microsoft .NET Framework
Version 4.7.03056

Installed Version: Professional

Visual C++ 2019   00435-60000-00000-AA567
Microsoft Visual C++ 2019

Intel® C++ Compiler   Package ID: w_comp_lib_2020.1.216
Intel® C++ Compiler – extension version 19.1.0.16, Package ID: w_comp_lib_2020.1.216, Copyright © 2002-2020 Intel Corporation. All rights reserved.
* Other names and brands may be claimed as the property of others.

Intel® Performance Libraries   Package ID: w_comp_lib_2020.1.216
Intel® Performance Libraries – extension version 19.1.0.16, Package ID: w_comp_lib_2020.1.216, Copyright © 2002-2020 Intel Corporation. All rights reserved.
* Other names and brands may be claimed as the property of others.

Intel® Visual Fortran Compiler   Package ID: w_comp_lib_2020.1.216
Intel® Visual Fortran Compiler - extension version 19.1.0055.16, Package ID: w_comp_lib_2020.1.216, Copyright © 2002-2020 Intel Corporation. All rights reserved.
* Other names and brands may be claimed as the property of others.

 

0 Kudos
1 Solution
Mariya_P_Intel
Moderator
409 Views

Possible workarounds for the case:

  • add /Zc:__cplusplus compiler option
  • change LanguageStandard in Project Settings: use Default or c++ 14 

The fix is expected in oneAPI 2021.1 Gold oneTBB Standalone.

View solution in original post

1 Reply
Mariya_P_Intel
Moderator
410 Views

Possible workarounds for the case:

  • add /Zc:__cplusplus compiler option
  • change LanguageStandard in Project Settings: use Default or c++ 14 

The fix is expected in oneAPI 2021.1 Gold oneTBB Standalone.

View solution in original post

Reply