-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Can't compile concurrent_vector with include winsock2.h or ws2tcpip.h #1407
Comments
Thank you for reporting this, @cccbbaa. Have you tried defining |
Thank you for your reply. That would really help me solve this problem. |
The problem is in the definition of the |
Thanks for your reply. That really helped me. |
Closing the issue. Please reopen if there are any further questions. |
Environment:
Windows 10 22h2
CPU 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
Visual Studio 2022 version is 17.10.2
compile in Intel C++ Compiler 2024.1
Description:
I have identified a potential issue when I use tbb::concurrent_map with windows socket. There's no problem when I just include tbb/concurrent_map.h and use tbb::concurrent_map<int, std::string>. But when I include winsock2.h or ws2tcpip.h, I get a compiler error, like these:
This is including the compilation of different files.
![recording](https://private-user-images.githubusercontent.com/95020703/340119206-80b91f91-62b4-4551-81e1-7ad6a301c147.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3NzE4NzIsIm5iZiI6MTcyNTc3MTU3MiwicGF0aCI6Ii85NTAyMDcwMy8zNDAxMTkyMDYtODBiOTFmOTEtNjJiNC00NTUxLTgxZTEtN2FkNmEzMDFjMTQ3LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA4VDA0NTkzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRiY2M2NjJkNzIwMGU3ZDA5MmY4MGU0Zjc4ODhkMWQ5ZDc3NTUyMTQ4ZWNjMjQ4M2NiMjYwZGY3MTQyMDczZTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.h9YAWRZPzmIqJpx8Y44JGIGhmVWZDgHYC4axgLzjres)
![recording](https://private-user-images.githubusercontent.com/95020703/340130897-a4f11917-7af6-424f-a03b-2cb327113df7.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3NzE4NzIsIm5iZiI6MTcyNTc3MTU3MiwicGF0aCI6Ii85NTAyMDcwMy8zNDAxMzA4OTctYTRmMTE5MTctN2FmNi00MjRmLWEwM2ItMmNiMzI3MTEzZGY3LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA4VDA0NTkzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZmMDczYmU1Y2E1ZjE4ZjQ2OTJhZjRkNTEzMjg4ZWM1ZWE2ZGE1MzEwMWI5OTNjNGMxZTdjMjFlODgyNzllNDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.CgtTo42GVwq9DlLVoS__WpDBbjz4o76bZcUa4RVLCgA)
The text was updated successfully, but these errors were encountered: