Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oneTBB MSVC 2019 compile ERROR #1242

Open
s9317741 opened this issue Oct 30, 2023 · 1 comment
Open

oneTBB MSVC 2019 compile ERROR #1242

s9317741 opened this issue Oct 30, 2023 · 1 comment

Comments

@s9317741
Copy link

Including windows.h and tbb\concurrent_vector.h in my A.cpp file will compile with errors.

Error message:
tbb\concurrent_vector.h(640): error C2062: type 'unknown-type' unexpected
tbb\concurrent_vector.h(640,1): error C2059: syntax error: ')'

If I move "include window.h" to the end, the compilation succeeds.

How to fix it using other methods?
I have many files with the same problem

@s9317741 s9317741 changed the title oneTBB MSVC compile ERROR oneTBB MSVC 2019 compile ERROR Oct 30, 2023
@pavelkumbrasev
Copy link
Contributor

Hi @s9317741, which version of TBB do you use?
Include of windows.h might confuse several defines that will lead to compilation problem so including windows.h after it should be appropriate W/A.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants